Script registration

Question for the python devs: Is it possible register a script such that it appears in the File menu?

Cheers

yes, look here under “Registering scripts”:

http://www.blender.org/documentation/244PythonDoc/API_related-module.html

By all means, correct me if I’m wrong, but the Group parameter only permits me to select where in the Scripts menu the script will be placed? I’d like to have my script callable from under File itself.

My current hack is to drop it into the Export group; but I’d like to have it directly under the File menu, if at all possible.

hi, you can easily have your script accessible from the help menu if quick access is all you need.
Or from the Add Mesh Menu via space bar or top menu. maybe…
Also Scripts in the render category show up via the top menu, so you could put it there.
Just change ‘Export’ to ‘Render’. Although the script if in export will already be under file-export anyway.
It would be interesting to know about the file menu but there are easy ways to quick access your script.
The file menu may be hard coded in c++ but I’m not sure.
not a dev sorry, just a script tester, sometime rewriter.
m.a.

Thanks Meta-Androcto - I had a feeling it was hardcoded. The script I’m working on integrates client-side svn operations into Blender, so on the one hand it doesn’t quite fit into the menu’s you mention but on the other, I refer to it a lot - I think fast access wins out over correctness!

I’m thinking of releasing it too, so it makes the choice a little bit more important. Anyway, thanks!