SculptBrushParams
¶
New in version R16.021.
The parameters to pass in when registering a Sculpting Brush.
c4d.modules.sculpting.
SculptBrushParams
¶
SculptBrushParams.EnableStencil()
SculptBrushParams.EnableStamp()
SculptBrushParams.EnableInvertCheckbox()
SculptBrushParams.EnableBuildup()
SculptBrushParams.EnableNonModelPickMode()
SculptBrushParams.EnableFlood()
SculptBrushParams.EnableToolSpecificSmooth()
SculptBrushParams.EnableModifier()
SculptBrushParams.EnableDrawDirection()
SculptBrushParams.EnableRespectSelections()
SculptBrushParams.EnableFillToolIsolatedPointRemover()
SculptBrushParams.EnablePressureHUD()
SculptBrushParams.EnableBackfaceSculpting()
SculptBrushParams.EnableMouseData()
SculptBrushParams.SetFloodType()
SculptBrushParams.SetBrushMode()
SculptBrushParams.SetFirstHitPointType()
SculptBrushParams.SetUndoType()
SculptBrushParams.SetPolygonObjectDirtyFlags()
SculptBrushParams.
EnableStencil
(
enable
)
¶
Parameters: | enable ( bool ) – True if the brush uses stencils, otherwise False . Default is True . |
---|
SculptBrushParams.
EnableStamp
(
enable
)
¶
Parameters: | enable ( bool ) – True if the brush uses stamps, otherwise False . Default is True . |
---|
SculptBrushParams.
EnableInvertCheckbox
(
enable
)
¶
GROUP MDATA_SCULPTBRUSH_SETTINGS_GROUP { COLUMNS 3; BOOL MDATA_SCULPTBRUSH_SETTINGS_INVERT { } STATICTEXT { DUMMY; } STATICTEXT { DUMMY; } }
Parameters: | enable ( bool ) – True if the brush uses the invert checkbox, otherwise False . Default is False . |
---|
SculptBrushParams.
EnableBuildup
(
enable
)
¶
GROUP MDATA_SCULPTBRUSH_SETTINGS_GROUP { COLUMNS 3; REAL MDATA_SCULPTBRUSH_SETTINGS_BUILDUP { MIN 1; MAX 100; MINSLIDER 1; MAXSLIDER 100; CUSTOMGUI REALSLIDER; FIT_H; SCALE_H; } STATICTEXT { JOINENDSCALE; } STATICTEXT { JOINEND; } }
Parameters: | enable ( bool ) – True if the brush uses the buildup slider, otherwise False . Default is False . |
---|
SculptBrushParams.
EnableNonModelPickMode
(
enable
)
¶
SculptBrushToolData.HandleNonModelPickMode and :meth:`SculptBrushToolData.DrawNonModelPickMode()
?
Private.
Parameters: |
enable
(
bool
) –
True
if the brush has implemented
SculptBrushToolData.HandleNonModelPickMode()
and
SculptBrushToolData.DrawNonModelPickMode()
, otherwise
False
. Default is
False
.
|
---|
SculptBrushParams.
EnableFlood
(
enable
)
¶
GROUP MDATA_SCULPTBRUSH_SETTINGS_GROUP { COLUMNS 3; BUTTON MDATA_SCULPTBRUSH_SETTINGS_FLOOD{ } STATICTEXT { JOINENDSCALE; } STATICTEXT { JOINEND; } }
Parameters: | enable ( bool ) – True if the brush has implemented a Flood function, otherwise False . Default is False . |
---|
SculptBrushParams.
EnableToolSpecificSmooth
(
enable
)
¶
SculptBrushToolData.ApplyDab()
method by checking if (GetBrushOverride() &
OVERRIDE_SMOOTHTOOL
) is
True
and then you can implement your own smooth method.
Otherwise it will use the Smooth Brush for smoothing.
Parameters: | enable ( bool ) – True if you are handling smoothing yourself, otherwise False . Default is False . |
---|
SculptBrushParams.
EnableModifier
(
enable
)
¶
Tells the system that this brush can use modifiers from other brushes (display the modifiers tab).
Parameters: | enable ( bool ) – Set to True if you want this brush to be able to use modifiers from other brushes. |
---|
SculptBrushParams.
EnableDrawDirection
(
enable
)
¶
BrushDabData.GetDrawDirectionNormal()
to get the direction of the normal based on the currently selected Draw Direction.
Parameters: | enable ( bool ) – Set to True to display the Draw Direction UI. Disabled by default. |
---|
SculptBrushParams.
EnableRespectSelections
(
enable
)
¶
When enabled will tell the brush to respect Point and Polygon selections when in Point or Polygon mode respectively.
Parameters: | enable ( bool ) – True if the brush should respect selections, otherwise False . Default is False . |
---|
SculptBrushParams.
EnableFillToolIsolatedPointRemover
(
enable
)
¶
SculptBrushToolData.ApplyDab()
function.
Parameters: | enable ( bool ) – True if the brush should remove isolated points, False if it should keep them. Default is True . |
---|
SculptBrushParams.
EnablePressureHUD
(
enable
)
¶
When enabled will display the pressure value in the sculpting size/pressure HUD.
Parameters: | enable ( bool ) – True if the brush should dispay the pressure value, otherwise False . Default is True . |
---|
SculptBrushParams.
EnableBackfaceSculpting
(
enable
)
¶
New in version R17.032.
Tells the system that this brush supports backface sculpting and that the Backface option should be displayed in the brushes settings.
Parameters: | enable ( bool ) – True if the brush supports backface sculpting, otherwise False . Default is False . |
---|
SculptBrushParams.
EnableMouseData
(
enable
)
¶
New in version R17.048.
Enables/disables the callback for the
SculptBrushToolData.MouseData()
method.
Parameters: |
enable
(
bool
) –
True
if the brush needs the
SculptBrushToolData.MouseData()
callback, otherwise
False
. Default is
True
.
|
---|
SculptBrushParams.
SetFloodType
(
type
)
¶
Specifies what kind of data the flood operation will change (points or mask).
Parameters: | type ( int ) – The flood data type. Default is SCULPTBRUSHDATATYPE_POINT . |
---|
SculptBrushParams.
SetBrushMode
(
mode
)
¶
Specifies what type of brush this is (grab or normal).
Parameters: | mode ( int ) – The brush mode. Default is SCULPTBRUSHMODE_NORMAL . |
---|
SculptBrushParams.
SetFirstHitPointType
(
type
)
¶
Specifies what should happen when the user first clicks on model before dragging.
Parameters: | type ( int ) – The first hitpoint type. Default is FIRSTHITPPOINTTYPE_SELECTED . |
---|
SculptBrushParams.
SetUndoType
(
type
)
¶
Specifies what kind of data the brush will be changing and storing in the undo system (point or mask).
Parameters: | type ( int ) – The brush data type. Default is SCULPTBRUSHDATATYPE_POINT . |
---|
SculptBrushParams.
SetPolygonObjectDirtyFlags
(
type
)
¶
New in version R17.032.
Sets which flags should be checked to do a rebuild of the collision structure for a
PolygonObject
.
These flags are used to check against the PolygonObjects dirty flags when a stroke is about to be done on a
PolygonObject
.
If the flags being checked are dirty since the last check then the collision cache structure for the object will be rebuilt.
This can be used in cases such as the Select Brush where you are not directly moving the points of the model during a stroke.
So you can set all the flags except the
DIRTYFLAGS_SELECT
- using something like
DIRTYFLAGS_ALL & ~DIRTYFLAGS_SELECT
- to ensure that the object is not recalculated when just the select flags are changed.
In all other cases the object will be rebuilt.
Parameters: |
type
(
int
) –
The dirty flags to check:
|
---|