Wings 3D Development Forum

Full Version: shell script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to all,
I would like to write a script for wings3D that would do these command in sequence:
- import STL 'filenamein'
-select all
-scale uniform 10%
-center X, center Y, center Z
-export WRL 'filenameout'
(the best would be to launch a script from windows command line...)

I cannot find a place with examples... or a manual to start from...

any help would be appreciate
thank you
Mau
easyw,
It is not possible to write scripts.

The following thread is your best bet... Combine Commands.

I am afraid what you are trying to do may be too complicated but I cannot say for sure since I have not tried the software mentioned in the thread.

oort
I also don't think it could be possible, but maybe this example could help you to try: Exploring Wings3D through the Erlang Shell (for beginners)
If you find a way, please don't forget to share here. Smile
If you download the src there is a script, which I use to convert between fileformats
is can be easy modfied to do what you want, requires some programming though if you are not afraid
of that. See wings_convert in src directory.

It does file format conversion and tesselation, you will have to add scale and center command.

You need erlang installed (from erlang.org) and you will need to setup the paths so it finds
erlang and the wings compiled code.

The script currently requires bash (i.e. mingw or cygwin) but you can change the first line of it to run it from
the windows com shell. Requires some google skills :-)