Command line load/execute of python script

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

nicholas_yue
Posts: 10
Joined: Sat Oct 26, 2002 7:41 am

Command line load/execute of python script

Postby nicholas_yue » Sun Oct 27, 2002 3:00 am

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

theeth
Posts: 1184
Joined: Wed Oct 16, 2002 5:47 am
Location: Montreal
Contact:

Re: Command line load/execute of python script

Postby theeth » Sun Oct 27, 2002 3:27 am

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

Saluk
Posts: 166
Joined: Wed Oct 16, 2002 6:52 am

Postby Saluk » Sun Oct 27, 2002 5:43 am

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.

nicholas_yue
Posts: 10
Joined: Sat Oct 26, 2002 7:41 am

Re: Command line load/execute of python script

Postby nicholas_yue » Sun Oct 27, 2002 8:58 am

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?


Return to “Python”

Who is online

Users browsing this forum: No registered users and 2 guests