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 GvPort is a port of a GvNode-object. Please note, a GvPort object cannot be alive without its owner. Use GvNode.AddPort to create a port.
Connects a port with another.
Note
Remember, the nodes of the ports have to be in the same GvNodeMaster, otherwise the connection fails.
| Parameter: | port (GvPort) – The port to connect to. |
|---|---|
| Return type: | bool |
| Returns: | True on succeeded connection, otherwise False. |
Removes the connections of this port.
| Return type: | bool |
|---|---|
| Returns: | True if the connection was removed, otherwise False. |
Get the number of connections, including both the incoming connection and outgoing connections.
| Return type: | int |
|---|---|
| Returns: | Number of connections. |
Check if there’s an incoming connection.
| Return type: | bool |
|---|---|
| Returns: | True if there’s an incoming connection to the port, otherwise False. |
Returns the port where the port is linked with.
| Return type: | list of type GvPort |
|---|---|
| Param: | A list with all destinations. |
Returns the node of this port.
| Return type: | GvNode |
|---|---|
| Param: | The container |
Gets the name of this port.
| Parameter: | node (GvNode) – The node the port belongs to |
|---|---|
| Return type: | str |
| Returns: | Port name. |
Sets the name of this port.
| Parameter: | name (str) – Port name. |
|---|
Gets the IO mode for this port.
| Return type: | int |
||||||
|---|---|---|---|---|---|---|---|
| Returns: | IO mode:
|
Gets the main ID of the port.
| Return type: | int |
|---|---|
| Returns: | Main ID. |
Gets the sub ID of the port.
| Return type: | int |
|---|---|
| Returns: | Sub ID. |
Gets the user ID of the port.
| Return type: | int |
|---|---|
| Returns: | Sub ID. |
Set the visibility of the port.
| Parameter: | v (bool) – False for an invisible port. |
|---|
Checks if this port is hidden or visible.
| Return type: | bool |
|---|---|
| Returns: | True if visible, otherwise False. |