Forces sculpt mode with Cookie Cutter interface
The following functions can be rewritten in a subclass:
self.can_start(context)
True
if Custom Sculpt Mode's ui and data structures can be initialized, else False
ob
is bpy.context.active_object
: return ob is not None and ob.type == "MESH" and bpy.context.mode == "OBJECT"
@classmethod
decoratorself.ui_setup_post()
self.info_panel
self.inst_paragraphs
self.tools_panel
self.commit_button
self.cancel_button
self.info_panel
with any ui element above): self.info_panel.visible = False
self.start_post()
self.add_point_pre(loc)
loc
argument will be 2D Vector with new point's locationself.b_pts
list or check custom conditions for adding new pointTrue
if point can be added, else False
self.add_point_post(new_point)
new_point
argument will D3Point object with the following attributes:
new_point.label
= label string for pointnew_point.location
= 3D location Vector for pointnew_point.surface_normal
= 3D surface normal Vector of the object at this point's locationnew_point.view_direction
= 3D view direction Vector of the viewport at the time this point was placedself.move_point_post(moved_point)
moved_point
argument will D3Point object with the following attributes:
new_point.label
= label string for pointnew_point.location
= 3D location Vector for pointnew_point.surface_normal
= 3D surface normal Vector of the object at this point's locationnew_point.view_direction
= 3D view direction Vector of the viewport at the time this point was placedself.end_commit()
self.end_commit_post()
self.end_commit_post()