c4d.plugins.TagData
¶
A data class for tag plugins. Use
RegisterTagPlugin()
to register the plugin. Registered tag plugins appear in the New Tag menu and can be attached to objects.
Note
Before you start writing your own TagData plugin, you should read NodeData Management and Writing delta time plugins before.
See also
Py-LookAtCamera plugin example.
c4d.plugins.
TagData
¶
c4d.plugins.NodeData
TagData.
Draw
(
self
,
tag
,
op
,
bd
,
bh
)
¶
Override - Called when the display is updated for you to display some visual element of your tag in the 3D view.
Note
This function is called in a thread context. Please see the important information about threading.
Parameters: |
|
---|---|
Return type: |
bool |
Returns: |
Success of drawing into the editor view. |
TagData.
Execute
(
self
,
tag
,
doc
,
op
,
bt
,
priority
,
flags
)
¶
Override - Called at the point when the tag is executed.
Note
This function is called in a thread context. Please see the important information about threading.
Parameters: |
|
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
int |
||||||||||||||||||||||||||||
Returns: |
One of the following results:
|
TagData.
AddToExecution
(
self
,
tag
,
list
)
¶
Override - By default this function returns
False
. Then Cinema 4D will call
Execute()
at the priority specified by the user in the
EXPRESSION_PRIORITY
parameter of the container.
If you override this function and return True , then you can insert your own points of execution in the list by calling for example:
list.Add(tag, EXECUTIONPRIORITY_ANIMATION, 0) list.Add(tag, EXECUTIONPRIORITY_GENERATOR, 0)
Cinema 4D will then call
Execute()
two times.
Parameters: |
|
---|---|
Return type: |
bool |
Returns: |
True if you override this function and have added stuff to list. |