[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2539] branches/geodesic_domes/gui_259. py: major step ...
Peter K.H. Gragert
pkhgragert at gmail.com
Fri Oct 28 08:57:55 CEST 2011
Revision: 2539
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2539
Author: pkhg
Date: 2011-10-28 06:57:55 +0000 (Fri, 28 Oct 2011)
Log Message:
-----------
major step ... prepared for modal operators
Modified Paths:
--------------
branches/geodesic_domes/gui_259.py
Modified: branches/geodesic_domes/gui_259.py
===================================================================
--- branches/geodesic_domes/gui_259.py 2011-10-27 16:57:11 UTC (rev 2538)
+++ branches/geodesic_domes/gui_259.py 2011-10-28 06:57:55 UTC (rev 2539)
@@ -170,7 +170,7 @@
("4","Torus","Generate Torus"),
("5","Sphere","Generate Sphere"),
("6","Your mesh","Generate Your Mesh"),
-
+ ("7","Apply sform","Apply superform parameter"),
],
default='0')
@@ -209,34 +209,6 @@
WhatToDo = "GENERATE" # geodesic.getActionToDo(active_obj)
if WhatToDo == 'GENERATE':
- col.label("superform parameters")
- row = layout.row()
- row.prop(context.scene,'superformula_um')
- row.prop(context.scene,'superformula_un1')
- row = layout.row()
- row.prop(context.scene,'superformula_un2')
- row.prop(context.scene,'superformula_un3')
- row = layout.row()
- row.prop(context.scene,'superformula_ua')
- row.prop(context.scene,'superformula_ub')
- row = layout.row()
- row.prop(context.scene,'superformula_vm')
- row.prop(context.scene,'superformula_vn1')
- row = layout.row()
- row.prop(context.scene,'superformula_vn2')
- row.prop(context.scene,'superformula_vn3')
- row = layout.row()
- row.prop(context.scene,'superformula_va')
- row.prop(context.scene,'superformula_vb')
- row = layout.row()
- row.prop(context.scene,'superformula_uact')
- row.prop(context.scene,'superformula_vact')
- row = layout.row()
- row.prop(context.scene,'superformula_uturn')
- row.prop(context.scene,'superformula_vturn')
- row = layout.row()
- row.prop(context.scene,'superformula_utwist')
- row.prop(context.scene,'superformula_vtwist')
col = layout.column(align=True)
col.label(" ")
col.label("parameters adusted? ==>generate")
@@ -280,104 +252,43 @@
row = layout.row()
row.prop(context.scene,"geodesic_square_z")
row.prop(context.scene,"super_rotate_nr2")
- elif tmp == 1: #grid
- row = layout.row()
- row.prop(context.scene,"grid_xres")
- row.prop(context.scene,"grid_yres")
- row = layout.row()
- row.prop(context.scene,"grid_xsize")
- row.prop(context.scene,"grid_ysize")
- elif tmp == 2: #cylinder
+ elif tmp in [1,2,3,4,5]:
pass
+ elif tmp == 7:
'''
+ col.label("superform parameters")
row = layout.row()
- row.prop(context.scene,"cylinder_uresolution")
- row.prop(context.scene,"cylinder_vresolution")
+ row.prop(context.scene,'superformula_um')
+ row.prop(context.scene,'superformula_un1')
row = layout.row()
- row.prop(context.scene,"cylinder_uscale")
- row.prop(context.scene,"cylinder_vscale")
+ row.prop(context.scene,'superformula_un2')
+ row.prop(context.scene,'superformula_un3')
row = layout.row()
- row.prop(context.scene,"cylinder_upart")
- row.prop(context.scene,"cylinder_vpart")
+ row.prop(context.scene,'superformula_ua')
+ row.prop(context.scene,'superformula_ub')
row = layout.row()
- row.prop(context.scene,"cylinder_uphase")
- row.prop(context.scene,"cylinder_vphase")
+ row.prop(context.scene,'superformula_vm')
+ row.prop(context.scene,'superformula_vn1')
row = layout.row()
- row.prop(context.scene,"cylinder_utwist")
- row.prop(context.scene,"cylinder_vtwist")
+ row.prop(context.scene,'superformula_vn2')
+ row.prop(context.scene,'superformula_vn3')
row = layout.row()
- row.prop(context.scene,"cylinder_xscale")
- row.prop(context.scene,"cylinder_yscale")
- '''
- elif tmp == 3: #parabola
- pass
- '''
+ row.prop(context.scene,'superformula_va')
+ row.prop(context.scene,'superformula_vb')
row = layout.row()
- row.prop(context.scene,"parabola_uresolution")
- row.prop(context.scene,"parabola_vresolution")
+ row.prop(context.scene,'superformula_uact')
+ row.prop(context.scene,'superformula_vact')
row = layout.row()
- row.prop(context.scene,"parabola_uscale")
- row.prop(context.scene,"parabola_vscale")
+ row.prop(context.scene,'superformula_uturn')
+ row.prop(context.scene,'superformula_vturn')
row = layout.row()
- row.prop(context.scene,"parabola_upart")
- row.prop(context.scene,"parabola_vpart")
- row = layout.row()
- row.prop(context.scene,"parabola_uphase")
- row.prop(context.scene,"parabola_vphase")
- row = layout.row()
- row.prop(context.scene,"parabola_utwist")
- row.prop(context.scene,"parabola_vtwist")
- row = layout.row()
- row.prop(context.scene,"parabola_xscale")
- row.prop(context.scene,"parabola_yscale")
+ row.prop(context.scene,'superformula_utwist')
+ row.prop(context.scene,'superformula_vtwist')
'''
- elif tmp == 4: #torus
pass
- ''' #check if this works does!
- row = layout.row()
- row.prop(context.scene,"torus_uresolution")
- row.prop(context.scene,"torus_vresolution")
- row = layout.row()
- row.prop(context.scene,"torus_uscale")
- row.prop(context.scene,"torus_vscale")
- row = layout.row()
- row.prop(context.scene,"torus_upart")
- row.prop(context.scene,"torus_vpart")
- row = layout.row()
- row.prop(context.scene,"torus_uphase")
- row.prop(context.scene,"torus_vphase")
-# row = layout.row()
-# row.prop(context.scene,"torus_utwist")
-# row.prop(context.scene,"torus_vtwist")
- row = layout.row()
- row.prop(context.scene,"torus_xscale")
- row.prop(context.scene,"torus_yscale")
- #'''
-
- elif tmp == 5: #sphere
- pass
- '''
- row = layout.row()
- row.prop(context.scene,"sphere_uresolution")
- row.prop(context.scene,"sphere_vresolution")
- row = layout.row()
- row.prop(context.scene,"sphere_uscale")
- row.prop(context.scene,"sphere_vscale")
- row = layout.row()
- row.prop(context.scene,"sphere_upart")
- row.prop(context.scene,"sphere_vpart")
- row = layout.row()
- row.prop(context.scene,"sphere_uphase")
- row.prop(context.scene,"sphere_vphase")
- row = layout.row()
- row.prop(context.scene,"sphere_utwist")
- row.prop(context.scene,"sphere_vtwist")
- row = layout.row()
- row.prop(context.scene,"sphere_xscale")
- row.prop(context.scene,"sphere_yscale")
- '''
+
else:
- col.label("your mesh not yet implemented")
+ col.label("\n**INFO*** YOUR MESH not yet implemented")
else:
col.label(text="Select one")
col.label(text="object to generate")
More information about the Bf-extensions-cvs
mailing list