[Bf-python] registering a python addon which uses ctypes

MohamedSakr 3dsakr at gmail.com
Fri May 24 23:25:21 CEST 2013


Hi,
I have made a new addon (which works perfect if I make it an addon and do
"edit source" and check register in the text editor)

note that this addon got the register function correct

def register():
    bpy.utils.register_module(__name__) 
    bpy.types.Scene.msmesh_path =
bpy.props.StringProperty(subtype="FILE_PATH")
    bpy.types.Object.msmesher =
bpy.props.PointerProperty(type=MSMesherPropGroup)
    bpy.types.Scene.abcdef = PointerProperty(type=Abcdef)
        
def unregister():
    bpy.utils.unregister_module(__name__)
    del bpy.types.Scene.msmesh_path
    del bpy.types.Object.msmesher
    del bpy.types.Scene.abcdef
        
if __name__ == "__main__":
    register()

this addon is doing "meshing" to particles in blender...it uses ctypes and
blender particles.as_pointer()

this addon is reading the DLL from the blender folder

cheers,
Mohamed Sakr




--
View this message in context: http://blender.45788.x6.nabble.com/registering-a-python-addon-which-uses-ctypes-tp108535.html
Sent from the Bf-python mailing list archive at Nabble.com.



More information about the Bf-python mailing list