<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>
</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>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>