i’m using the addmesh module i guess
and i got this example for the main sub
def main(): segments=Blender.Draw.Create(2) rings=Blender.Draw.Create(90) height=Blender.Draw.Create(1.0) radius=Blender.Draw.Create(1.0) # if segment = 1 do 1/2 parabola - if segment= 2 do full parabola if not Blender.Draw.PupBlock('Add Polar Hypoppede',[\ ('segments:',segments,1,500,'number of segments per ring'),\ ('rings:',rings,2,500,'number of rings'),\ ('height:',height,0.0,10.0,'height of Polar Hypoppede'),\ ('radius:',radius,0.1,1.0,'radius of Polar Hypoppede'),\ ]): return v,f = add_Hypoppede(segments.val,rings.val,radius.val,height.val) BPyAddMesh.add_mesh_simple('Polar Hypoppede',v,,f) main()
in this code we got several slider button !
is there an example with a menu where you can select from that menu and then execute different functions
i’d like to make a script with several type of curves
and not have to using one script per curve if possible
i got an example for the spiral using global variables but it seems that this is not the way to do it now aday?