Previous Thread  Next Thread

chat icon Command line load/execute of python script

nicholas_yue

Posted: Sun Oct 27, 2002 3:00 am
Joined: 26 Oct 2002
Posts: 10
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
Reply with quote


theeth

Posted: Sun Oct 27, 2002 3:27 am
Joined: 16 Oct 2002
Posts: 1177
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.

Quote:
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
_________________
Life is what happens to you when you're busy making other plans.
- John Lennon
Reply with quote


Saluk

Posted: Sun Oct 27, 2002 5:43 am
Joined: 16 Oct 2002
Posts: 166
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.
Reply with quote


nicholas_yue

Posted: Sun Oct 27, 2002 8:58 am
Joined: 26 Oct 2002
Posts: 10
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?
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group