mirror of
https://github.com/leozide/leocad
synced 2025-02-14 08:48:26 +01:00
149 lines
6.1 KiB
HTML
149 lines
6.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
<title>Meta Commands | LeoCAD</title>
|
|
<link rel="stylesheet" href="../main.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
|
|
<!-- navbar start -->
|
|
<div class="nav-main">
|
|
<div class="wrap">
|
|
<a class="nav-home" href="../index.html"><img class="nav-logo" src="../leocad-32.png" width="32" height="32"> LeoCAD </a>
|
|
<ul class="nav-site nav-site-internal">
|
|
<li><a href="../download.html">Download</a></li>
|
|
<li><a href="start.html" class="active">Documentation</a></li>
|
|
<!-- <li><a href="../help.html">Help</a></li> -->
|
|
</ul>
|
|
<ul class="nav-site nav-site-external">
|
|
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- navbar end -->
|
|
|
|
<section class="content wrap documentationContent">
|
|
|
|
<!-- docbar start -->
|
|
<div class="nav-docs">
|
|
<div class="nav-docs-section">
|
|
<h3>General Information</h3>
|
|
<ul>
|
|
<li><a href="start.html">Getting Started</a></li>
|
|
<li><a href="library.html">Parts Library</a></li>
|
|
<li><a href="compiling.html">Compiling Guide</a></li>
|
|
<li><a href="license.html">License</a></li>
|
|
<li><a href="history.html">Version History</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="nav-docs-section">
|
|
<h3>Tutorials</h3>
|
|
<ul>
|
|
<!--
|
|
<li><a href="">Choosing and Adding Pieces</a></li>
|
|
<li><a href="">Moving and Rotating Pieces</a></li>
|
|
<li><a href="camera.html">Camera and Viewport</a></li>
|
|
<li><a href="">Models</a></li>
|
|
<li><a href="">Flexible Parts</a></li>
|
|
Keyframing
|
|
POV-Ray
|
|
Pivot points
|
|
-->
|
|
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- <li><a href="">Coordinate System</a></li>
|
|
<li><a href="">Configuration Shortcuts</a></li>
|
|
-->
|
|
<div class="nav-docs-section">
|
|
<h3>Reference</h3>
|
|
<ul>
|
|
<li><a href="meta.html" class="active">Meta Commands</a></li>
|
|
<li><a href="texmap.html">Texture Mapping</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- docbar end -->
|
|
|
|
<div class="inner-content">
|
|
|
|
<h2>LDraw File Meta Commands</h2>
|
|
<div class="subHeader"></div>
|
|
<p>This is a list of meta commands used by LeoCAD when saving files in LDraw format. Parameters in square brackets are optional and parameters in angle brackets are required.</p>
|
|
|
|
<h4>Model</h4>
|
|
<ul><li>0 !LEOCAD MODEL NAME <name>
|
|
<p>Sets the name of the model.</p>
|
|
</li><li>0 !LEOCAD MODEL AUTHOR <name>
|
|
<p>Sets the name of the model's author.</p>
|
|
</li><li>0 !LEOCAD MODEL DESCRIPTION <description>
|
|
<p>Sets the description of the model.</p>
|
|
</li><li>0 !LEOCAD MODEL COMMENT <comment>
|
|
<p>Adds a line to the model's comments section, multiple lines are allowed and will be appended in the order they appear.</p>
|
|
</li><li>0 !LEOCAD MODEL BACKGROUND COLOR <r g b>
|
|
<p>Sets the model's background to a solid color.</p>
|
|
<li>0 !LEOCAD MODEL BACKGROUND GRADIENT <!r1 g1 b1 !r2 g2 b2>
|
|
<p>Sets the model's background to a gradient.</p>
|
|
</li><li>0 !LEOCAD MODEL BACKGROUND IMAGE [TILE] NAME <filename>
|
|
<p>Sets the model's background to an image file. If TILE is specified the image will be display in its original size and tiled as needed, otherwise it will be stretched to fit the entire view.</p>
|
|
</li></ul>
|
|
|
|
<h4>Piece</h4>
|
|
<p>Piece commands will apply to the first piece added to the model after they are seen.</p>
|
|
<ul><li>0 !LEOCAD PIECE STEP_HIDE <step>
|
|
<p>Stops showing the piece at a given step.</p>
|
|
</li><li>0 !LEOCAD PIECE HIDDEN
|
|
<p>Hides the piece, it can be made visible again using the Piece menu.</p>
|
|
</li><li>0 !LEOCAD PIECE POSITION_KEY <time x y z>
|
|
</li><li>0 !LEOCAD PIECE ROTATION_KEY <time a b c d e f g h i>
|
|
<p>Adds a key frame at a given time.</p>
|
|
</li><li>0 !LEOCAD PIECE PIVOT <x y z a b c d e f g h i>
|
|
<p>Sets the pivot point of this piece.</p>
|
|
</li></ul>
|
|
|
|
<h4>Camera</h4>
|
|
<p>Camera commands can be grouped in the same line, they don't need to be on separate lines.
|
|
A camera must contain either a set of position, target position and up vector or a set of keys for those parameters.</p>
|
|
<ul><li>0 !LEOCAD CAMERA HIDDEN
|
|
<p>Hides the camera, it can be made visible again using the Piece menu.</p>
|
|
</li><li>0 !LEOCAD CAMERA ORTHOGRAPHIC
|
|
<p>Sets the camera to use an orthographic projection, if not present it will use a perspective projection.</p>
|
|
</li><li>0 !LEOCAD CAMERA FOV <angle>
|
|
<p>Sets the field of view for the camera (default: 30 degrees).</p>
|
|
</li><li>0 !LEOCAD CAMERA ZNEAR <distance>
|
|
<p>Sets the distance of the near plane (default: 25).</p>
|
|
</li><li>0 !LEOCAD CAMERA ZFAR <distance>
|
|
<p>Sets the distance of the far plane (default: 50000).</p>
|
|
</li><li>0 !LEOCAD CAMERA POSITION <x y z>
|
|
<p>Sets the position of the camera.</p>
|
|
</li><li>0 !LEOCAD CAMERA TARGET_POSITION <x y z>
|
|
<p>Sets the target position.</p>
|
|
</li><li>0 !LEOCAD CAMERA UP_VECTOR <x y z>
|
|
<p>Sets the up vector.</p>
|
|
</li><li>0 !LEOCAD CAMERA POSITION_KEY <time x y z>
|
|
</li><li>0 !LEOCAD CAMERA TARGET_POSITION_KEY <time x y z>
|
|
</li><li>0 !LEOCAD CAMERA UP_VECTOR_KEY <time x y z>
|
|
<p>Adds a key frame at a given time.</p>
|
|
</li><li>0 !LEOCAD CAMERA NAME <name>
|
|
<p>Creates a new camera with all the parameters listed up to this statement.</p>
|
|
</li></ul>
|
|
|
|
<h4>Group</h4>
|
|
<p>All pieces and groups added inside a GROUP BEGIN and GROUP END block will be added as children of that group. If a group with the same name appears twice in a model it will be considered the same group.</p>
|
|
<ul><li> 0 !LEOCAD GROUP BEGIN <name>
|
|
<p>Creates a new group if a group with the same name doesn't exist already and makes all pieces and groups added before the next END command a part of this group. </p>
|
|
</li><li> 0 !LEOCAD GROUP END
|
|
<p>Marks the end of the current group, pieces and groups will not be added to it anymore. If the current group is part of another group then the parent group will be the new current group.</p>
|
|
</li></ul>
|
|
|
|
|
|
</div>
|
|
</section>
|
|
<!-- footer start -->
|
|
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
|
<!-- footer end -->
|
|
</div>
|
|
</body>
|
|
</html>
|