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
Here is an example how to use:
import c4d
from c4d import documents
tag = c4d.BaseTag(c4d.Texpresso)
obj = documents.GetActiveDocument().GetFirstObject()
if obj is not None: #check if there is no object
obj.InsertTag(tag)
The base class of many other classes.
BaseList2D
XPressoTag VariableTag TextureTag SelectionTag UVWTag
| Parameter: | type (int) – The id of the object, e.g: (Texpresso). |
|---|---|
| Return type: | BaseTag |
| Returns: | A new tag. |
Returns the object where the object is attached.
| Return type: | BaseObject |
|---|---|
| Returns: | The object or None if its not attached. |