shell script - Printable Version +- Wings 3D Development Forum (https://www.wings3d.com/forum) +-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1) +--- Forum: Interface & Usage (https://www.wings3d.com/forum/forumdisplay.php?fid=3) +--- Thread: shell script (/showthread.php?tid=282) |
shell script - easyw - 04-12-2013 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 RE: shell script - oort - 04-12-2013 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 RE: shell script - micheus - 04-12-2013 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. RE: shell script - dgud - 04-14-2013 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 :-) |