you mean like htat
ncell1 = IntProperty(name=“No Cells”, description=“No Cells”, default=4, min=4, max=100,options={‘SKIP_SAVE’})
KT = FloatProperty(name=“KT”, description=“KT”,default=4, min=2, max=50,options={‘SKIP_SAVE’})
KP = FloatProperty(name=“KP”, description=“KP”,default=4, min=2, max=20,options={‘SKIP_SAVE’})
i have a class wtit 10 props for calculations
what is the best way to pass these vars to functions?
Global vars may be or pass prop into a dictionary !
this is for the add menu class
class Periodpattern1(bpy.types.Operator):
‘’‘Add Period Patterns’’’
bl_idname = “mesh.primitive_periodpat1_add”
bl_label = “Period Patterns”
bl_options = {‘REGISTER’, ‘UNDO’,‘BLOCKING’}
ncell1 = IntProperty(name=“No Cells”, description=“No Cells”, default=4, min=4, max=100,options={‘SKIP_SAVE’})
KT = FloatProperty(name=“KT”, description=“KT”,default=4, min=2, max=50,options={‘SKIP_SAVE’})
KP = FloatProperty(name=“KP”, description=“KP”,default=4, min=2, max=20,options={‘SKIP_SAVE’})
unless there is a way to make a scene prop too!
if you want to see math model
see PPT file here
http://www.eb.tuebingen.mpg.de/fileadmin/uploads/images/Research/emeriti/Hans_Meinhardt/ppt/How_to_write_a_program.ppt
thanks