Variables in LDraw files


RE: Variables in LDraw files
#13
(2022-07-06, 21:10)Roland Melkert Wrote: You could (should?) do this using a new meta, especially since you would need to extend existing software in order to use it anyway.

Something like:
Code:
!VAR "height" = 24
!VAR 1 16 0 "height" 0 6 0 0 0 -20 0 0 0 6 box5.dat

You Could also loose the quotes (I always hate those) by defining grammar for the variable name, for example ([a-zA-z]+[a-zA-Z0-9]*)  (case insensitive if needed)

Fortunately for LDraw community, I am no where near a good enough programmer to extend the file format or any of the existing editors to support this. I was just looking to make sure that this hadnt been developed but never got a write up or was still in an alpha or beta phase of development. 

Thanks for all the interesting thoughts about this. I will probably do some simple scripting to get what I want then just export to .dat and go from there.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Variables in LDraw files - by Cam's Bricks - 2022-07-06, 12:31
RE: Variables in LDraw files - by Cam's Bricks - 2022-07-07, 11:44
Constants in LDraw files - by Nils Schmidt - 2022-07-07, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)