| Code: |
| blocation = FloatVectorProperty(name="Becon Location",
description="Becon Location", default=(0.0, 0.0, 0.0), min=(0.0,0.0,0.0), max=(100.0,100.0,100.0), step=3, precision=2, options={'ANIMATABLE'}, subtype='TRANSLATION', size=3, update=None, get=None, set=None .... my_z = blocation[2] |
| Code: |
| self.blocation |
| Code: |
| bpy.types.Scene.blocation = ...
|
| Code: |
| bpy.context.scene.blocation |
| Code: |
| print(self.blocation) |
| Code: |
| room_width = FloatProperty(name="Room Width",
description="Room Width", min=1.0, max=10, default=3) location = FloatVectorProperty(name="Receiver Location", description="Receiver Location", default=(0.0, 0.0, 0.0), min=(0.0,0.0,0.0), max=(100.0,100.0,100.0), step=3, precision=2, options={'ANIMATABLE'}, subtype='NONE', size=3, update=None, get=None, set=None) blocation = FloatVectorProperty(name="Becon Location", description="Becon Location", default=(0.0, 0.0, 0.0), min=(0.0,0.0,0.0), max=(100.0,100.0,100.0), step=3, precision=2, options={'ANIMATABLE'}, subtype='TRANSLATION', size=3, update=None, get=None, set=None) crap = FloatVectorProperty(attr="myColorValue", min=0, max=1, default=0, name="myColor", description="my cool color value i can use for anything i like", subtype="COLOR") def draw(self, context): layout = self.layout box = layout.box() box.prop(self, 'room_length') box.prop(self, 'room_width') box.prop(self, 'location') box.prop(self, 'blocation') box = layout.box() layout.prop(context.material, "myColorValue") |