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

c4d.BaseTag – a Tag class

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)
../../../../../../_images/main3.png

The base class of many other classes.

class c4d.BaseTag

SuperClass

BaseList2D

Methods

static BaseTag.__init__(type)
Parameter:type (int) – The id of the object, e.g: (Texpresso).
Return type:BaseTag
Returns:A new tag.
BaseTag.GetObject()

Returns the object where the object is attached.

Return type:BaseObject
Returns:The object or None if its not attached.
BaseTag.GetOrigin()

Returns where the tag was cloned from. For example, if the tag is on a cache object, it tells you what the original tag was from the original document.

Return type:BaseTag
Returns:The origin tag or None.

Table Of Contents

This Page