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
Cannot be instantiated. Use GvNodeMaster.CreateNode() to create nodes. The GvNode is a double BaseList2D node.
Note
Please use GvNode.GetOperatorContainer() to access most parameters.
A GvNode is a node which is stored in a GvNodeMaster. A node contains ports represented by GvPort.
BaseList2D
Returns the operator ID.
| Return type: | int |
|---|---|
| Returns: | The id. |
Returns the owner ID of the node.
| Return type: | int |
||||||
|---|---|---|---|---|---|---|---|
| Returns: | The id.
|
Returns the GvNodeMaster where the node is attached to.
| Return type: | GvNodeMaster |
|---|---|
| Parameter: | mask – The GvNodeMaster or None if there is no nodemaster. |
Checks if the node is a group node.
| Return type: | bool |
|---|---|
| Parameter: | mask – True if the node is a group node, otherwise False. |
Changes the type of a port of this node.
| Parameters: |
|
|---|
Changes the type of the port. Used to manage dynamic data ports.
| Parameter: | id (int) – The type. |
|---|
Removes all unused ports - Sends a message to the node.
| Parameter: | message (bool) – If this is True, the operator receives a message when the ports are removed. |
|---|
Removes a port from this node.
| Parameters: |
|
|---|
hecks if it’s OK to remove a port from this node. Used to check if a call to GvNode.remove_port() would succeed.
| Parameters: |
|
|---|
Retrieves a port by sub ID.
| Parameter: | sub_id (int) – Port sub ID. |
|---|---|
| Return type: | GvPort |
| Returns: | The retrieved port, or None. |
Gets the index of a port by sub ID.
| Parameter: | id (int) – Port sub ID. |
|---|---|
| Return type: | int |
| Returns: | Port index. |
Retrieves all outports of a node.
| Parameter: | type (int) – If type is set, just the ports with the given type will be returned. Each port has its own type ID’s for the ports so check the C-header files of the node. |
|---|---|
| Return type: | list of GvPort |
| Returns: | The GvPorts or None if no port was found. |
Retrieves all inports of a node.
| Parameter: | type (int) – If type is set, just the ports with the given type will be returned. Each port has its own type ID’s for the ports so check the C-header files of the node. |
|---|---|
| Return type: | list of GvPort |
| Returns: | The GvPorts or None if no port was found. |
Retrieves an inport by index.
| Parameter: | id (int) – the index |
|---|---|
| Return type: | GvPort |
| Returns: | The GvPort or None if no port was found. |
Retrieves an outport by index.
| Parameter: | id (int) – the index |
|---|---|
| Return type: | GvPort |
| Returns: | The GvPort or None if no port was found. |
Returns the count of the inports.
| Return type: | int |
|---|---|
| Returns: | The count |
Returns the count of the outports.
| Parameter: | num (int) – The count |
|---|
Set the settings container.
| Parameter: | str – The container |
|---|
Returns the settings container.
| Return type: | BaseContainer |
|---|---|
| Returns: | The container |
Adds a port to the node.
| Parameters: |
|
||||||
|---|---|---|---|---|---|---|---|
| Return type: | GvPort |
||||||
| Returns: | The created port or None if creation failed. |
Checks if GvNode.add_port would be successfull.
| Parameters: |
|
||||||
|---|---|---|---|---|---|---|---|
| Return type: | bool |
||||||
| Returns: | Returns True if adding the port would succeed, otherwise False. |