This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com
| Return type: | CAWeightTag |
|---|---|
| Returns: | The new weight tag. |
Get joint object at index.
| Parameters: |
|
|---|
Get total joint count.
| Return type: | int |
|---|---|
| Returns: | Total joint count. |
Return the index of this object or NOTOK if not found.
| Parameters: |
|
|---|
Get the rest state for the joint at index.
| Parameters: | |
|---|---|
| Return type: | dict |
Set the rest state for the joint at index.
| Parameters: |
|---|
Get the windex weight and which point index pntindex it is as well as the weight:
pntindex, weight = caweighttag.GetIndexWeight(0, 0)
| Parameters: |
|
|---|---|
| Return type: | list |
Return the weight for the point pntindex.
| Parameters: |
|
|---|---|
| Return type: | float |
| Returns: | Weight. |
Set the weight for pntindex.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: | True if succesful, otherwise False. |
Get the dirty state of the weights.
| Return type: | long |
|---|---|
| Returns: | The weight’s dirty state. |
Get the global matrix for the bind geometry. Use this with the global matrices of the joints to get the local transforms.
| Return type: | Matrix |
|---|---|
| Returns: | The global matrix for the bind geometry. |
Set the global matrix for the bind geometry.
| Parameter: | mg (Matrix) – The global matrix for the bind geometry. |
|---|
Add a Joint object to the Weight tag’s “Joints” list.
| Parameter: | op (BaseObject) – The Joint object to add to the Weight tag’s “Joints” list. |
|---|---|
| Return type: | int |
| Returns: | Joint object’s index in the “Joints” list. |
Remove Joint object from the Weight tag’s “Joints” list.
| Parameter: | op (BaseObject) – The Joint object to remove from the Weight tag’s “Joint” list. |
|---|
Helper function to initialize the Joint at index.
Note
The Joints must be in the document.
| Parameter: | index (int) – The Joint index. Set to NOTOK to process all joints. |
|---|
Transfer the weights from one Weight tag to another. Pass NOTOK for sindex, dindex and cnt if they shouldn’t be evaluated.
| Parameters: |
|
|---|