New in version R16.021.
This interface lets apply the affects of a sculpting modifier to any Polygon Object.
It allows to use the same algorithms outside of the sculpting system itself and deform a Polygon Object using the same brush algorithms that the sculpt brushes use.
See also
Py-SculptModifierDeformer plugin example showing how to use SculptModifierInterface in a deformer implementation.
Initializes the interface so that you can apply modifiers to the given Polygon Object.
Parameters: | poly (PolygonObject) – The Polygon Object that you wish to apply modifiers to. |
---|---|
Return type: | bool |
Returns: | True if successfully initialized. |
Clears the interface. This will free up any internal data that was required to apply modifiers to the initialized PolygonObject in Init().
Gets the default brush data setting. These settings can be found in toolsculptbrushbase.h.
Return type: | BaseContainer |
---|---|
Returns: | The container containing all the default brush settings. |
Gets the number of available modifiers that are currently registered and able to be used.
Return type: | int |
---|---|
Returns: | The number of Modifiers. |
Gets the information about a modifier given its index.
Parameters: | index (int) – The index into the list of available modifiers. GetModifierCount() returns the number of modifiers. |
---|---|
Return type: | dict{id: int, name: str} |
Returns: | The modifier information. |
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if the data was correctly set. |
Applies a modifier to the Polygon Object near the specified vertex.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if the modifier was successfully applied. |
Exactly applies a modifier to the Polygon Object near the specified vertex using the given hitpoint.
Parameters: |
|
---|---|
Return type: | bool |
Returns: | True if the modifier was successfully applied. |