[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2522] branches/geodesic_domes/gui_259. py: version 0.3 types.Scene paramters adujsted to first

Peter K.H. Gragert pkhgragert at gmail.com
Tue Oct 25 17:27:28 CEST 2011


Revision: 2522
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2522
Author:   pkhg
Date:     2011-10-25 15:27:28 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
version 0.3  types.Scene paramters adujsted to first
basic working version

Modified Paths:
--------------
    branches/geodesic_domes/gui_259.py

Modified: branches/geodesic_domes/gui_259.py
===================================================================
--- branches/geodesic_domes/gui_259.py	2011-10-25 15:26:30 UTC (rev 2521)
+++ branches/geodesic_domes/gui_259.py	2011-10-25 15:27:28 UTC (rev 2522)
@@ -22,87 +22,111 @@
 
 
 """
-Rev 0.2 building menues PKHG
+Rev 0.3 building menues PKHG
 """
 
 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=6, soft_max=24, max = 36, default =  12) #PKHG 23 oct needed for cylinder
 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
-        
+bpy.types.Scene.formobs_uscale = FloatProperty(name = 'uscale', min = 0, soft_min=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 = 0, 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 = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)  #gap?
+bpy.types.Scene.formobs_vpart = FloatProperty(name = 'vpart', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)  #defines gaps?!
+bpy.types.Scene.formobs_uphase = FloatProperty(name = 'uphase', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1) 
+bpy.types.Scene.formobs_vphase = FloatProperty(name = 'vphase', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1) 
+bpy.types.Scene.formobs_utwist = FloatProperty(name = 'utwist', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0) 
+bpy.types.Scene.formobs_vtwist = FloatProperty(name = 'vtwist', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0) 
+bpy.types.Scene.formobs_xscale = FloatProperty(name = 'xscale', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)  #scale in x direction
+bpy.types.Scene.formobs_yscale = FloatProperty(name = 'yscale', min = 0, 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 =  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 =  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 =  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)
-bpy.types.Scene.superformula_vtwist = FloatProperty(name = 'vtwist', min = 1, soft_min=0.1, soft_max=5,max = 10, default =  0.0)
+bpy.types.Scene.superformula_um = FloatProperty(name = 'um', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  3)
+bpy.types.Scene.superformula_un1 = FloatProperty(name = 'un1', min = 0, soft_min=0.1, soft_max=5,max = 20, default =  10)
+bpy.types.Scene.superformula_un2 = FloatProperty(name = 'un2', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  10)
+bpy.types.Scene.superformula_un3 = FloatProperty(name = 'un3', min = 0,   soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_ua = FloatProperty(name = 'ua', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1.0)
+bpy.types.Scene.superformula_ub = FloatProperty(name = 'ub', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  4.0)
+bpy.types.Scene.superformula_vm = FloatProperty(name = 'vm', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  10)
+bpy.types.Scene.superformula_vn1 = FloatProperty(name = 'vn1', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  10)
+bpy.types.Scene.superformula_vn2 = FloatProperty(name = 'vn2', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  10)
+bpy.types.Scene.superformula_vn3 = FloatProperty(name = 'vn3', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_va = FloatProperty(name = 'va', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_vb = FloatProperty(name = 'vb', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+bpy.types.Scene.superformula_uact = BoolProperty(name = 'sup u-active',default = False)
+bpy.types.Scene.superformula_vact = BoolProperty(name = 'sup v-active',default = False)
+bpy.types.Scene.superformula_uturn = FloatProperty(name = 'uturn', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+bpy.types.Scene.superformula_vturn = FloatProperty(name = 'vturn', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+bpy.types.Scene.superformula_utwist = FloatProperty(name = 'utwist', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+bpy.types.Scene.superformula_vtwist = FloatProperty(name = 'vtwist', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
 
+#for Grid
 bpy.types.Scene.grid_xres = IntProperty(name="X res",min = 1, soft_min = 2, soft_max=10, max = 20, default = 2)
 bpy.types.Scene.grid_yres = IntProperty(name="Y res",min = 1, soft_min = 2, soft_max=10, max = 20, default = 2)
 bpy.types.Scene.grid_xsize = FloatProperty(name = "X size", min = 1, soft_min=0.1, soft_max=5,max = 10, default = 2.0)
 bpy.types.Scene.grid_ysize = FloatProperty(name="Y size",min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1.0)
+
 #for Cylinder
-bpy.types.Scene.cylinder_xres= IntProperty(name="X res",min = 1, soft_max=10, max = 20, default = 2)
-bpy.types.Scene.cylinder_yres= IntProperty(name="Y res",min = 1, soft_max=10, max = 20, default = 2)
-bpy.types.Scene.cylinder_radius = FloatProperty(name="Radius",min = 0.001, soft_min=0.1, soft_max=4,max = 5, default = 1.0)
-bpy.types.Scene.cylinder_height = FloatProperty(name="Height",min = 0.001, soft_min=0.1, soft_max=4,max = 5, default = 1.0)
-bpy.types.Scene.cylinder_stretch = FloatProperty(name="Height",min = 0.001, soft_min=0.1, soft_max=4,max = 5, default = 1.0)
-bpy.types.Scene.cylinder_gap = FloatProperty(name="Gap",min = 0.001, soft_min=0.1, soft_max=4,max = 5, default = 1.0)
+bpy.types.Scene.cylinder_uresolution = IntProperty(name = 'uresolution', min = 2, soft_min = 4, soft_max=24, max = 36, default =  12) #PKHG 23 oct needed for cylinder
+bpy.types.Scene.cylinder_vresolution = IntProperty(name = 'vresolution', min = 2, soft_max=5, max = 10, default =  4) 
+bpy.types.Scene.cylinder_uscale = FloatProperty(name = 'radius', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)   #seams to be scaling from center in r direction
+bpy.types.Scene.cylinder_vscale = FloatProperty(name = 'height', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)    #expand and shift get factor vscale
+bpy.types.Scene.cylinder_upart = FloatProperty(name = 'upart(gap)', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1)  #PKHG default no u-gap
+bpy.types.Scene.cylinder_vpart = FloatProperty(name = 'vpart(gap)', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1)  #PKHG defalut: no v-gap

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list