Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
shell script
04-12-2013, 09:25 PM
Post: #1
shell script
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
Reply
04-12-2013, 10:38 PM
Post: #2
RE: shell script
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
Reply
04-12-2013, 10:59 PM
Post: #3
RE: shell script
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
Reply
04-14-2013, 02:36 PM (This post was last modified: 04-14-2013 02:44 PM by dgud.)
Post: #4
RE: shell script
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 :-)
Reply


Forum Jump:


User(s) browsing this thread: 1 Guest(s)