Hi,
folgendes Problem beschäftigt mich schon seit geraumer Zeit:
Code:
import bpy
from bpy.props import *
class InsetExtrude(bpy.types.Panel):
bl_idname = "mesh.inset_extrude"
bl_label = "Inset Extrude"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
amount = FloatProperty(name="amount")
@classmethod
def poll(self, context):
return(bpy.context.mode == 'EDIT_MESH')
def draw(self, context):
layout = self.layout
box = layout.box()
box.label("Inset Options:")
box.prop(self,"amount")
bpy.utils.register_class(InsetExtrude)
Angezeigt wird aber nur das Label Inset Options:, die Eigenschaft (layout.prop, in dem Falle self.amount) wird nicht angezeigt. Weiß irgendwer Rat? In der Python API hab ich nichts gefunden.
Gruß Delta
EDIT: Laut der Konsole gibt es die Eigenschaft mesh.inset_extrude.amount nicht. die ist doch aber da?