Inheritence |
|
Methods
staticWorkItems
: list
of pdg.WorkItem
Property
The static work items stored on the processor node. This method is deprecated and has been replaced by pdg.Node.workItems.
injectStaticItems()
→ pdg.InjectBlock
Returns a context manager block for injecting static items. Used in a
Python with
statement.
Methods from pdg.NodeInterface
__getitem__(port_name)
→ pdg.Port
Returns the port for the given name.
default(parameter_name)
→ int
, float
or str
Returns the default value for the specified parameter.
input(input_number)
→ pdg.Port
Returns the input port for the given input number.
inputsForNode(other_node)
→ list
of pdg.Port
Returns the port(s) on this node that are connected to the given node, or the empty list if there are no connections.
inputsForWorkItem(work_item)
→ list
of pdg.Port
Returns the port(s) on this node that are connected to the node that owns the specified work tiem, or the empty list if there are no connections.
output(output_number)
→ pdg.Port
Returns the output port for the given output number.
parameter(parameter_name)
→ pdg.Port
Returns the parameter port for the given name.
parametersForTag(tag)
→ list
of pdg.Port
Returns the list of parameters with the specified tag.
port(port_type, number)
→ pdg.Port
Returns the port for the specified pdg.portType and port number.
portCount()
→ int
Returns the number of points on the interface.
ports(port_type)
→ list
of pdg.Port
Returns the list of ports of the specified pdg.portType.
value(parameter_name)
→ int
, float
or str
Returns the constant value for the specified parameter.
topNode()
: hou.TopNode
Returns the hou.TopNode associated with this PDG node.
attributeInfo
: pdg.AttributeInfo
Property
Returns the attribute info object for this PDG node.
topNodeId
: int
Property
The unique session ID of the hou.TopNode associated with this PDG node.
Methods from pdg.Node
addEventHandler(handle, filter=pdg.EventType.All, pass_handler=False)
→ pdg.EventHandler
Adds an event handler to the node, with a value of the type of event to receive. The handler
should be a callable that accepts one argument of type pdg.Event.
If pass_handler
is True, the handler itself is passed as the first argument to
the function, otherwise only the event object is passed to the function.
cancel()
#cppname PDG_Node::cancel
Cancels any work items that are cooking in the node and any future work items that have not yet been scheduled. Other nodes in the graph are not effected, but downstream work items that depend on items in the node will also be canceled indirectly.
cook(block)
→ bool
Cooks the node. Block determines if the cook should block the caller or
if the cook should be async. Returns True
on success.
cookError(message)
Issues a cook error on this node.
cookWarning(message)
Issues a cook warning on this node.
dirty(remove_outputs)
Dirties the node and deletes all of its work items. If remove_outputs
is True
, the output files for the work items are deleted on disk.
It is invalid to dirty a node while the PDG graph is actively cooking.
memoryUsage()
→ pdg.MemoryInfo
Queries memory usage of the node and the work items inside it.
nodeOptions(force_update)
Returns the current pdg.NodeOptions for the node. If force_update
is
True
the options will be recreated using the node’s onConfigureNode
callback.
removeEventHandler(handler)
Removes an event handler from the node.
removeAllEventHandlers()
Removes all event handlers from the node.
resultData(localize)
→ list
of tuple
Returns the aggregate result data list for all items in the node, which
consists of tuples of the form (file, tag, checksum)
.
reserveIndexBlock(num_indices)
→ int
Rerseves num_indices
contiguous work item indices and returns the first index in that list. This method is useful when implementing a dynamic node with work item counts that vary based on upstream work item data. This method only works if all indices are created using it – it is still up to the node author to make sure that calls to add work items are actually using values in the reserved range.
context
: pdg.GraphContext
Property
The graph context that contains the node.
dependencies
: list
of pdg.Dependency
Property
The list of dependencies this node depends on.
isCooked
: bool
Property
Set to True
if the node is cooked.
loopDepth
: int
Property
The nested loop depth if this node is in a loop block, else -1.
name
: str
Property
The unique name for the node, within the pdg.Graph that contains it.
partitions
: list
of pdg.WorkItem
Property
The list of partitions stored on the node, if it is a partitioner.
regenerateReason
: pdg.regenerateReason
Property
If this node is regenerating work items, this property returns an enum value describing why the regeneration is occurring.
scheduler
: pdg.SchedulerBase
Property
The node’s custom scheduler, or the pdg.GraphContext's default scheduler if the node has no custom scheduler.
type
: pdg.NodeCallbackType
Property
The type object used to create the node.
workItems
: list
of pdg.WorkItem
Property
The list of all regular work items on this node, both static and dynamic.