Forum: Blender


Subject: trying to create poser morph

haloedrain opened this issue on Nov 18, 2006 · 10 posts


Ayamikhan posted Mon, 20 November 2006 at 1:25 AM

As Jetmark says, the Close button will close Blender. Use the Continue button.

You might also to modify exported Obj files as is advised, but I've only opened Blender exported Obj in Ayam3d to apply RMan shaders and had no need to.

Some old Blender scripts don't have the BPy header section that's used by modern Blender to automatically register them in the scripts menu.

I do it the old way, which is :

Open the Bpymenus file in the .blender folder above the scripts folder in a text editor,
and the .py files you want to add to the scripts menu in another tab in the text editor,

Then you need to find in the Bpymenus file the section titled Import  and add a new line containing the data it should have been given by the script's registration header :

Import  {

'OBJ...' 232 objio_modif232.py 0 'Import Wavefront File Format (*.obj)'
}

Then save the Bpymenus file, and restart Blender.

This must be the exact same information as in the scripts header if it has one. The current Blender API syntax for that header is :

#!BPY
#"""Registration info for Blender menus:
#Name: 'OBJ...'
#Blender: 232
#Group: 'Import
#Tip: 'Import Wavefront File Format (*.obj)'
#"""

Note the Bpymenu entry is the data from the different fields from #Name: and #Blender:, with the name of the script added inline then a 0, then finally the #Tip: section.

Some older scripts instead have only the # before !BPY and are not recognised, other scripts have no registration header at all.

Since I prefer all scripts to be in my menu, I add this data for the ones that have to be started from Blender's text editor with Alt+P or File Menu > Run script, or are run from opening .blend files, by saving the text of the script from Blender's text editor as a .py in my .blender/scripts folder and manually adding them to Bpymenus in the same way above.

Also because since the auto registration function has been added to Blender, I have never known it to work in SuSE so I will continue doing things the old way :)

Tenzin

Rendered unconscious in 3D dreams

http://blendertorenderman.blogspot.com
http://neurochemic.blogspot.com
http://tenzintogden.livejournal.com
http://ttenzin.googlepages.com
http://eurochemistry.googlepages.com
http://ayamikhan.deviantart.com
http://www.youtube.com/Ayamikhan