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
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 SuperClass before.
//Methods to override
Override - Called when a new instance of the node plugin has been allocated.
Note
If your class has a constructor it is called as usual before this function, but at that time there’s no object link established.
| Parameter: | tag (BaseTag) – The object which is established with this instance. Warning Please note, if you return False, the object will not be created. |
|---|---|
| Return type: | bool |
| Returns: | True on success, otherwise False. |
Override - Called by BaseList2D.Message.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: | True on success, otherwise False. |
Override - Called when the display is updated for you to display some visual element of your tag in the 3D view.
Note
Important: 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. |
Override - Called at the point when the tag is executed.
Note
Important: 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:
|