c4d.modules.character.CAJointObject

class c4d.modules.character.CAJointObject

The base class of objects.

Here is an example how to create and edit objects.

import c4d

obj = c4d.BaseObject(c4d.Ocube) # Create new cube
obj.SetRelPos(c4d.Vector(20))   # Set position of cube
doc.InsertObject(obj)           # Insert object in document
c4d.EventAdd()                  # Send global event message
../../../../_images/baseobject_main.png

Parent Class:

Overview

Magic Methods

CAJointObject.__init__()

Rigging Data Access

CAJointObject.GetBone()

Get the bone data for this joint

CAJointObject.GetWeightTag()

Get the weight tag corresponding to this joint

Members

Magic Methods

CAJointObject.__init__(self)

Rigging Data Access

CAJointObject.GetBone(self)

Get the bone data for this joint

m, len = cajointobject.GetBone()
Return type

List[c4d.Matrix, float]

Returns

The matrix and the length of the bone.

CAJointObject.GetWeightTag(self)

Get the weight tag corresponding to this joint

weight = cajointobject.GetWeightTag()
if not weight: return

print(weight["op"]) #c4d.BaseTag
print(weight["index"]) #int
Return type

dict{op: BaseTag, index: int}

Returns

The weight tag and the index of the tag.