Images as Planes: Improve option panels #104936
@ -812,7 +812,10 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
|
|||||||
box = layout.box()
|
box = layout.box()
|
||||||
|
|
||||||
box.label(text="Compositing Nodes:", icon='RENDERLAYERS')
|
box.label(text="Compositing Nodes:", icon='RENDERLAYERS')
|
||||||
box.prop(self, "compositing_nodes")
|
row = box.row(align=True)
|
||||||
|
row.use_property_split = False
|
||||||
|
row.prop(self, "compositing_nodes")
|
||||||
|
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
box = layout.box()
|
box = layout.box()
|
||||||
box.label(text="Material Settings:", icon='MATERIAL')
|
box.label(text="Material Settings:", icon='MATERIAL')
|
||||||
@ -860,15 +863,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
|
|||||||
box = layout.box()
|
box = layout.box()
|
||||||
|
|
||||||
box.label(text="Transform:", icon='SNAP_GRID')
|
box.label(text="Transform:", icon='SNAP_GRID')
|
||||||
box.prop(self, "offset")
|
|
||||||
col = box.column()
|
|
||||||
row = col.row()
|
|
||||||
row.prop(self, "offset_axis", expand=False)
|
|
||||||
row = col.row()
|
|
||||||
row.prop(self, "offset_amount")
|
|
||||||
col.enabled = self.offset
|
|
||||||
|
|
||||||
box.label(text="Plane dimensions:")
|
|
||||||
row = box.row()
|
row = box.row()
|
||||||
row.prop(self, "size_mode", expand=False)
|
row.prop(self, "size_mode", expand=False)
|
||||||
if self.size_mode == 'ABSOLUTE':
|
if self.size_mode == 'ABSOLUTE':
|
||||||
@ -879,14 +874,21 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
|
|||||||
else:
|
else:
|
||||||
box.prop(self, "factor")
|
box.prop(self, "factor")
|
||||||
|
|
||||||
box.label(text="Orientation:")
|
|
||||||
row = box.row()
|
row = box.row()
|
||||||
row.enabled = 'CAM' not in self.size_mode
|
row.enabled = 'CAM' not in self.size_mode
|
||||||
row.prop(self, "align_axis")
|
row.prop(self, "align_axis")
|
||||||
|
if 'CAM' in self.align_axis:
|
||||||
|
row = box.row()
|
||||||
|
row.prop(self, "align_track")
|
||||||
|
|
||||||
row = box.row()
|
row = box.row()
|
||||||
row.enabled = 'CAM' in self.align_axis
|
row.prop(self, "offset")
|
||||||
row = box.row()
|
col = box.column()
|
||||||
row.prop(self, "align_track")
|
row = col.row()
|
||||||
|
row.prop(self, "offset_axis", expand=False)
|
||||||
|
row = col.row()
|
||||||
|
row.prop(self, "offset_amount")
|
||||||
|
col.enabled = self.offset
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user