GUI scripts onload?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

bhartshorn
Posts: 5
Joined: Wed Nov 06, 2002 4:36 pm

GUI scripts onload?

Postby bhartshorn » Wed Nov 13, 2002 5:57 pm

I have a script that creates my own GUI with tool bars. I want it to load and run when I open my scene.
I have it linked to the "onload" attribute in my scene. But the script will not run when I open the scene. Can anyone help?

thanks,
-brett

bhartshorn
Posts: 5
Joined: Wed Nov 06, 2002 4:36 pm

Postby bhartshorn » Wed Nov 13, 2002 9:15 pm

oh, i found the answer, it is simple.
just import your script from another script, and it will run the imported script.


Return to “Python”

Who is online

Users browsing this forum: No registered users and 2 guests