PDA

View Full Version : changing a script from VBscript to Python


pelos
05-12-2011, 04:20 PM
if i did a script from the VBS log in the command line, is there i way that i can run it and get it on python?

its basic stuff like move and parent nulls and a couple of constraints.

Thanks. =)

ThE_JacO
05-25-2011, 04:19 AM
You could save it to a command, and run that command in a python script, if you are looking to use both languages together.
If you're asking about automatically converting a bunch of copy&pasted commands from one language to the other, no such thing, but it shouldn't take long to learn python to the point where you can do that, and the few minutes it would take to do some find&replace and clean up in a text editor.

pelos
05-25-2011, 04:27 PM
Thanks, J, yesterday i was working on it, and this is what i found,

since my script is basically a macro, i don't have variables or anything i can paste my script in the editor, and run it with a python tab open, and will translate it to python !!! LOL!!!.... now i can do more crazy thing,

Thanks.

CGTalk Moderation
05-25-2011, 04:27 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.