subtype support for properties in bpy.props.

This commit is contained in:
2010-02-01 22:04:33 +00:00
parent 26cfe812f8
commit 039d087171
18 changed files with 413 additions and 104 deletions

View File

@@ -93,16 +93,16 @@ class RandomizeLocRotSize(bpy.types.Operator):
use_loc = BoolProperty(name="Randomize Location",
description="Randomize the scale values", default=True)
loc = FloatVectorProperty(name="Location",
sdfwefreloc = FloatVectorProperty(name="Location",
description="Maximun distance the objects can spread over each axis",
default=(0.0, 0.0, 0.0), min=-100.0, max=100.0)
default=(0.0, 0.0, 0.0), min=-100.0, max=100.0, subtype='TRANSLATION')
use_rot = BoolProperty(name="Randomize Rotation",
description="Randomize the rotation values", default=True)
rot = FloatVectorProperty(name="Rotation",
description="Maximun rotation over each axis",
default=(0.0, 0.0, 0.0), min=-180.0, max=180.0)
default=(0.0, 0.0, 0.0), min=-180.0, max=180.0, subtype='TRANSLATION')
use_scale = BoolProperty(name="Randomize Scale",
description="Randomize the scale values", default=True)
@@ -116,7 +116,7 @@ class RandomizeLocRotSize(bpy.types.Operator):
scale = FloatVectorProperty(name="Scale",
description="Maximum scale randomization over each axis",
default=(0.0, 0.0, 0.0), min=-100.0, max=100.0)
default=(0.0, 0.0, 0.0), min=-100.0, max=100.0, subtype='TRANSLATION')
def execute(self, context):
from math import radians