Page 1 of 1

Command line load/execute of python script

Posted: Sun Oct 27, 2002 3:00 am
by nicholas_yue
I use PythonWin.exe to edit my python script in a console window.

Is there a way to start e.g. blenderpublisher with some command line argument that loads a python script and execute it? Like:

blender.exe -script mypythonscript.py -executescript

I'd like PythonWin for editing Python as it has syntax highlight and colouring.

Cheers
--
Nicholas Yue

Re: Command line load/execute of python script

Posted: Sun Oct 27, 2002 3:27 am
by theeth
nicholas_yue wrote:Is there a way to start e.g. blenderpublisher with some command line argument that loads a python script and execute it? Like:

blender.exe -script mypythonscript.py -executescript
in the Script window in Blender, you can link Python scripts to different events including OnLoad. Maybe that could help you.
I'd like PythonWin for editing Python as it has syntax highlight and colouring.
personnaly, I use IDLE, I find that it's a very useful program, and moreover, who more than the Python dudes would know what is best to code in Python :wink:

Martin

Posted: Sun Oct 27, 2002 5:43 am
by Saluk
I use Idle as well, although pythonwin isn't all that much different. Also, pythonwin has some nice extensions to allow creation of windows programs, although I could never actually figure out how to use the darn things.

Re: Command line load/execute of python script

Posted: Sun Oct 27, 2002 8:58 am
by nicholas_yue
theeth wrote:
in the Script window in Blender, you can link Python scripts to different events including OnLoad. Maybe that could help you.

Martin
Can you list the steps? How do I invoke the Script window to change the events?