Easier acces to Python scripts

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
LeHomard
Posts: 0
Joined: Fri Apr 23, 2004 4:04 pm
Contact:

Easier acces to Python scripts

Post by LeHomard » Tue Jun 22, 2004 10:13 pm

Is there any way to be able to put links to Python scripts directly in the Blender interface ?

There is this script window with a menu where there are a certain number of import and export scripts. Is it possible to just write a script and then put a link in that menu ? And what's the "misc" empty sub-menu ?

ElBarto
Posts: 0
Joined: Fri Jun 11, 2004 3:24 pm
Location: Berlin
Contact:

Post by ElBarto » Wed Jun 23, 2004 10:55 pm

To register a script to a menu you need to add this at the beginning of the script:

#!BPY

""" Registration info for Blender menus:
Name: 'NameOfYourScript'
Blender: 233
Group: 'Help'
Tip: '...YourToolTipHere'
"""

At the latest CVS built groups could be:
Animation, Import, Export, Generators, Help, Materials, Misc, Modifiers, Tools, UV and Wizards

Post Reply