Unknown model commands/comments - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: Models and Parts (https://forums.ldraw.org/forum-18.html) +--- Forum: Parts Authoring (https://forums.ldraw.org/forum-19.html) +--- Thread: Unknown model commands/comments (/thread-11311.html) |
Unknown model commands/comments - Michael Horvath - 2013-12-23 There are a number of commands in the attached file. They were added by Tore Eriksson before I started working on Datsville. Code: 0 !COLOUR red-brown CODE 70 VALUE #694027 EDGE 0 ALPHA 255 What are these commands for? Can they be safely removed? Re: Unknown model commands/comments - Michael Heidemann - 2013-12-23 The !COLOUR meta command defines the colors to use. If our code 70, 71, 72 has the same values than Tore used here these lines can be dropped. Otherwise the model will appear different. LDSWITCH I have read about, but can not tell you details now. I believe that those should stay, otherwise you need to know what you are doing. Google finding: http://news.lugnet.com/cad/dev/?n=11050 EXTRACT I have no idea where this comes from. It is no official meta command (http://www.ldraw.org/article/401.html) Re: Unknown model commands/comments - Michael Horvath - 2013-12-23 Tore Eriksson Wrote:The aim for this project is to create a META command syntax to make alternatives inside LDraw models or parts, and a utility program that uses the syntax as a proof of concept. It may also be useful for smaller LDraw based animations. I am having trouble understanding this quote. Alternatives? To what? Also, some models have a REM command. I am familiar with the MS-DOS REM command, but don't understand what its purpose is here. Re: Unknown model commands/comments - Steffen - 2013-12-23 the !COLOUR lines probably can be removed. they define colors that in the meantime have become official, obviously someone wanted to use them in datsville before they became official. you could look up their official color numbers and apply those color numbers to the bricks which use them in datsville. unless they were really intended to create a user-defined, custom color, the official colors should be preferred. The !LDSWITCH statements were a syntax suggestion. They allowed to declare variables and write conditional portions inside a file. So when you want to drop them, you need to decide which of the conditional blocks you want to keep. This is what the term "alternatives" above means. In your example, there seem to be 2 cases, one named "Inline" and one named "Use". 0 REM was just 1 of the many variations to write a comment. Nowadays, we use 0 // for that purpose 0 EXTRACT seems to be simply a normal comment by some author. Re: Unknown model commands/comments - Michael Horvath - 2013-12-23 Right! Thanks! Re: Unknown model commands/comments - Tore Eriksson - 2013-12-25 The LDSWITCH statements can be safely deleted from the model files of Datsville. I never finished the implementation of those META statements. The idea was to have two or more versions of a model in one file, for example different levels of simplification using LDBoxer. With an external "Switch" program, I wanted to be able to change the quality settings in a fully reversible way. Also, I wanted to be able to switch on and off the headlights (Standard color 47/DatShine *L47.dat version) of a vehicle for example. But I messed up my own standard and did never develop that shell program that was supposed to automatically switch the settings inside the models, and eventually I gave up *.LDraw . /Tore Re: Unknown model commands/comments - Michael Horvath - 2013-12-27 A lot of Jacob Sparre Andersen's models have the following lines in them: Code: 0 venstre Anyone know what these are for? Re: Unknown model commands/comments - Max Martin Richter - 2013-12-27 I don't know, what it is for... Translated from Danish to English it is Code: 0 left Maybe it's something for the viewing direction?! /Max Re: Unknown model commands/comments - Michael Horvath - 2013-12-27 Yes, that makes sense. Thanks. Re: Unknown model commands/comments - Tore Eriksson - 2013-12-30 I beleive they just pointed at the X, Y, and Z direction columns. Just remarks to support the author while making the model. Those lines can be safely deleted, or they can be kept in order to preserve as much as possible of the artist's original work. But OTOH, I have already had to alter so much from the original files, so there's not very much to preserve anyway. /Tore Re: Unknown model commands/comments - Michael Horvath - 2013-12-30 Well, I only AFAIK removed the stuff I listed in the first post. Most of the work was *adding* missing metacommands, or making them uniform across multiple models. |