[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2489] branches/geodesic_domes/gui_259. py: more parameters visible
Peter K.H. Gragert
pkhgragert at gmail.com
Tue Oct 18 19:54:39 CEST 2011
Revision: 2489
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2489
Author: pkhg
Date: 2011-10-18 17:54:39 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
more parameters visible
Modified Paths:
--------------
branches/geodesic_domes/gui_259.py
Modified: branches/geodesic_domes/gui_259.py
===================================================================
--- branches/geodesic_domes/gui_259.py 2011-10-18 17:54:21 UTC (rev 2488)
+++ branches/geodesic_domes/gui_259.py 2011-10-18 17:54:39 UTC (rev 2489)
@@ -28,22 +28,35 @@
import bpy
from math import *
from bpy.props import EnumProperty, IntProperty, FloatProperty, StringProperty, BoolProperty
-
+## parameters for forms-objects
+bpy.types.Scene.formobs_uresolution = IntProperty(name = 'uresolution', min = 2, soft_min=1, soft_max=5, max = 10, default = 4)
+bpy.types.Scene.formobs_vresolution = IntProperty(name = 'vresolution', min = 2, soft_min=1, soft_max=5,max = 10, default = 4)
+bpy.types.Scene.formobs_uscale = FloatProperty(name = 'uscale', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1) #seams to be scaling from center in r direction
+bpy.types.Scene.formobs_vscale = FloatProperty(name = 'vscale', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1) #expand and shift get factor vscale
+bpy.types.Scene.formobs_upart = FloatProperty(name = 'upart', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1) #gap?
+bpy.types.Scene.formobs_vpart = FloatProperty(name = 'vpart', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1) #defines gaps?!
+bpy.types.Scene.formobs_uphase = FloatProperty(name = 'uphase', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.formobs_vphase = FloatProperty(name = 'vphase', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.formobs_utwist = FloatProperty(name = 'utwist', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 0)
+bpy.types.Scene.formobs_vtwist = FloatProperty(name = 'vtwist', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 0)
+bpy.types.Scene.formobs_xscale = FloatProperty(name = 'xscale', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1) #scale in x direction
+bpy.types.Scene.formobs_yscale = FloatProperty(name = 'yscale', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1) #scale in z direction not y ?! the heigth so to say
+
## Superformula controls
-bpy.types.Scene.superformula_um = FloatProperty(name = 'um', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 3)
-bpy.types.Scene.superformula_un1 = FloatProperty(name = 'un1', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 10.0)
-bpy.types.Scene.superformula_un2 = FloatProperty(name = 'un2', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 10.0)
-bpy.types.Scene.superformula_un3 = FloatProperty(name = 'un3', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 10.0)
+bpy.types.Scene.superformula_um = FloatProperty(name = 'um', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.superformula_un1 = FloatProperty(name = 'un1', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.superformula_un2 = FloatProperty(name = 'un2', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.superformula_un3 = FloatProperty(name = 'un3', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
bpy.types.Scene.superformula_ua = FloatProperty(name = 'ua', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1.0)
bpy.types.Scene.superformula_ub = FloatProperty(name = 'ub', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1.0)
-bpy.types.Scene.superformula_vm = FloatProperty(name = 'vm', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 4)
-bpy.types.Scene.superformula_vn1 = FloatProperty(name = 'vn1', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 10.0)
-bpy.types.Scene.superformula_vn2 = FloatProperty(name = 'vn2', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 10.0)
-bpy.types.Scene.superformula_vn3 = FloatProperty(name = 'vn3', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 10.0)
+bpy.types.Scene.superformula_vm = FloatProperty(name = 'vm', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.superformula_vn1 = FloatProperty(name = 'vn1', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.superformula_vn2 = FloatProperty(name = 'vn2', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 11)
+bpy.types.Scene.superformula_vn3 = FloatProperty(name = 'vn3', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 11)
bpy.types.Scene.superformula_va = FloatProperty(name = 'va', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1.0)
bpy.types.Scene.superformula_vb = FloatProperty(name = 'vb', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1.0)
-bpy.types.Scene.superformula_uact = FloatProperty(name = 'uact', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 0)
-bpy.types.Scene.superformula_vact = FloatProperty(name = 'vact', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 0)
+bpy.types.Scene.superformula_uact = FloatProperty(name = 'uact', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
+bpy.types.Scene.superformula_vact = FloatProperty(name = 'vact', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1)
bpy.types.Scene.superformula_uturn = FloatProperty(name = 'uturn', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 0.0)
bpy.types.Scene.superformula_vturn = FloatProperty(name = 'vturn', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 0.0)
bpy.types.Scene.superformula_utwist = FloatProperty(name = 'utwist', min = 1, soft_min=0.1, soft_max=5,max = 10, default = 0.0)
@@ -298,8 +311,31 @@
row = layout.row()
row.prop(context.scene,"sphere_xgap")
row.prop(context.scene,"sphere_ygap")
+
else:
col.label("your mesh not yet implemented")
+ if tmp in [1,2,3,4,5]:
+ col = layout.column()
+ col.label("parameter to test")
+ row = layout.row()
+ row.prop(context.scene, 'formobs_uresolution')
+ row.prop(context.scene, 'formobs_vresolution')
+ row = layout.row()
+ row.prop(context.scene, 'formobs_uscale')
+ row.prop(context.scene, 'formobs_vscale')
+ row = layout.row()
+ row.prop(context.scene, 'formobs_upart')
+ row.prop(context.scene, 'formobs_vpart')
+ row = layout.row()
+ row.prop(context.scene, 'formobs_uphase')
+ row.prop(context.scene, 'formobs_vphase')
+ row = layout.row()
+ row.prop(context.scene, 'formobs_utwist')
+ row.prop(context.scene, 'formobs_vtwist')
+ row = layout.row()
+ row.prop(context.scene, 'formobs_xscale')
+ row.prop(context.scene, 'formobs_yscale')
+
else:
col.label(text="Select one")
col.label(text="object to generate")
More information about the Bf-extensions-cvs
mailing list