csc.update.Node

class csc.update.Node

Node class represents a generic Node and implements methods that are common for all nodes

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

attributes(self, d)

array of all input and output attributes

full_name(self)

name with all the parent nodes

has_input(self, name)

check if there is an input with such a name

has_output(self, name)

check if there is an output with such a name

id(self)

get uniqui id

input(self, name)

shortcut if node has only one input attribute

inputs(self)

array of all the inputes attributes

is_active(self)

check whether it is active for current actualities states (see Additional functionality in csc.update.UpdateEditor)

is_fictive(self)

whether it is a fictive node (constants, inputs, outputs of a group or external properties)

name(self)

get name

output(self, name)

shortcut if node has only one output attribute

outputs(self)

array of all the outputs attributes

parent_group(self)

return parent group (where this group node is located)

parent_object(self)

return object of the node.

set_name(self, name)

rename node

__annotations__ = {}
__init__(*args, **kwargs)
__module__ = 'csc.update'
attributes(self: csc.update.Node, d: csc.Direction) List[csc.update.NodeAttribute]

array of all input and output attributes

full_name(self: csc.update.Node) str

name with all the parent nodes

has_input(self: csc.update.Node, name: str) bool

check if there is an input with such a name

has_output(self: csc.update.Node, name: str) bool

check if there is an output with such a name

id(self: csc.update.Node) csc.update.GroupId | csc.update.InterfaceId | csc.update.ExternalPropertiesId | csc.update.ConstantDatasId | csc.update.ConstantSettingsId | csc.model.ObjectId | csc.model.HyperedgeId | csc.model.DataId | csc.model.SettingFunctionId | csc.model.SettingId

get uniqui id

input(self: csc.update.Node, name: str) csc.update.NodeAttribute

shortcut if node has only one input attribute

inputs(self: csc.update.Node) List[csc.update.NodeAttribute]

array of all the inputes attributes

is_active(self: csc.update.Node) bool

check whether it is active for current actualities states (see Additional functionality in csc.update.UpdateEditor)

is_fictive(self: csc.update.Node) bool

whether it is a fictive node (constants, inputs, outputs of a group or external properties)

name(self: csc.update.Node) str

get name

output(self: csc.update.Node, name: str) csc.update.NodeAttribute

shortcut if node has only one output attribute

outputs(self: csc.update.Node) List[csc.update.NodeAttribute]

array of all the outputs attributes

parent_group(self: csc.update.Node) domain::update_editor::Group

return parent group (where this group node is located)

parent_object(self: csc.update.Node) domain::update_editor::Object

return object of the node. Will return null if this is not an update group

set_name(self: csc.update.Node, name: str) None

rename node