mirror of
https://github.com/leozide/leocad
synced 2025-02-10 20:48:03 +01:00
145 lines
7.3 KiB
HTML
145 lines
7.3 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
|
|
-->
|
|
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
|
<li><a href="rotation.html">Rotation Center</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>The following is a list of meta commands that are used by LeoCAD when saving files in LDraw format. Note that parameters in square brackets are optional and that parameters in angle brackets are required.</p>
|
|
|
|
<h4>Model</h4>
|
|
<ul><li> “0 !LEOCAD MODEL NAME <name>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the name of the model.</p>
|
|
<ul><li>“0 !LEOCAD MODEL AUTHOR <name>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the name of the model’s author.</p>
|
|
<ul><li >“0 !LEOCAD MODEL DESCRIPTION<description>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the description of the model.</p>
|
|
<ul><li>“0 !LEOCAD MODEL COMMENT <comment>”</li></ul>
|
|
<p style='margin-left:.5in'>Adds a line to the model’s comments section. Multiple lines are allowed and will be appended in the order they appear.</p>
|
|
<ul><li>“0 !LEOCAD MODEL BACKGROUND COLOR <r g b>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the model’s background to a solid color.</p>
|
|
<ul><li>“0 !LEOCAD MODEL BACKGROUND GRADIENT <!r1 g1 b1 !r2 g2 b2>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the model’s background to a gradient.</p>
|
|
<ul><li>“0 !LEOCAD MODEL BACKGROUND IMAGE [TILE] NAME <filename>”</li></ul>
|
|
<p style='margin-left:.5in'>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>
|
|
|
|
<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>”</li></ul>
|
|
<p style='margin-left:.5in'>Stops showing the piece at a given step.</p>
|
|
<ul><li>“0 !LEOCAD PIECE HIDDEN”</li></ul>
|
|
<p style='margin-left:.5in'>Hides the piece (can be made visible again by using the “Piece” menu).</p>
|
|
<ul><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>”</li></ul>
|
|
<p style='margin-left:.5in'>Adds a key frame at a given time.</p>
|
|
<ul><li>“0 !LEOCAD PIECE PIVOT <x y z a b c d e f g h i>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the pivot point of this piece.</p>
|
|
|
|
<h4>Camera<o:p></o:p></h4>
|
|
<p>Camera commands can be grouped in the same line; they do not 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”</li></ul>
|
|
<p style='margin-left:.5in'>Hides the camera (can be made visible again by using the “Piece” menu).</p>
|
|
<ul><li>“0 !LEOCAD CAMERA ORTHOGRAPHIC”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the camera to use orthographic projection (perspective projection is used by default).</p>
|
|
<ul><li>“0 !LEOCAD CAMERA FOV <angle>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the field of view for the camera (default: 30 degrees).</p>
|
|
<ul><li>“0 !LEOCAD CAMERA ZNEAR <distance>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the distance of the near plane (default: 25).</p>
|
|
<ul><li>“0 !LEOCAD CAMERA ZFAR <distance>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the distance of the far plane (default: 50000).</p>
|
|
<ul><li>“0 !LEOCAD CAMERA POSITION <x y z>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the position of the camera.</p>
|
|
<ul><li>“0 !LEOCAD CAMERA TARGET_POSITION <x y z>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the target position.</p>
|
|
<ul><li>“0 !LEOCAD CAMERA UP_VECTOR <x y z>”</li></ul>
|
|
<p style='margin-left:.5in'>Sets the up vector.</p>
|
|
<ul><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>”</li></ul>
|
|
<p style='margin-left:.5in'>Adds a key frame at a given time.</p>
|
|
<ul><li>“0 !LEOCAD CAMERA NAME <name>”</li></ul>
|
|
<p style='margin-left:.5in'>Creates a new camera with all the parameters listed up to this statement.</p>
|
|
|
|
<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”</li></ul>
|
|
<p style='margin-left:.5in'><name>Creates a new group if a group with the same name does not already exist and makes all pieces and groups added before the next “END” command a part of this group.</p>
|
|
<ul><li>“0 !LEOCAD GROUP END”</li></ul>
|
|
<p style='margin-left:.5in'>Marks the end of the current group and will not allow the addition of more pieces and groups (If the current group is part of another group, then the parent group will be the new current group).</p>
|
|
|
|
|
|
</div>
|
|
</section>
|
|
<!-- footer start -->
|
|
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
|
<!-- footer end -->
|
|
</div>
|
|
</body>
|
|
</html>
|