i use a script to create my projects in brlcad (look here http://cobbaut.be/stok.sh.txt to get the idea). After starting mged, i use the mouse to go to "File" - "Load Script" and it works! Great!
But i'm looking for a way to run the script from the commandline (either inside mged, or as an option to mged). Is this possible ?
Something like :
paul@barry:~$ mged --run-script stok.sh
got part of it...
inside mged "source stok.sh" does the trick!
something strange (but not a real problem)
This script (http://cobbaut.be/stok.sh.txt) only works when i start mged from the BASH prompt with "mged dbstok.g".
If i just start mged without database, and then inside mged type "source stok.sh" than it blocks on the "bev L.bev L.r".
Try starting with an empty db named, say "stok.g". Then at the command line execute:
% mged -c stok.g < stok.sh.txt
I see errors but get a usable set of objects.
I also work from scripts.
It is the key to a fully parametric model,
eg change the length of a ship, and have
everything else change accordingly.
The cycle is change the script, display the model,
go back to the script. Its easy to write a
little shell script that does this,
but right now you not only have to type in the
source command manually each time,
you get an annoying pop up that asks if you want
to start a new database.
But Pols requested capability is more than
a convenience, it is needed to implement
de shows and the like.
Tom's workaround is not the answer
since you still have to manually attach the
Hope this gets on the todo list.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.