hou.RopNode class

Represents a render output node.

All Methods Replaces

Inheritence: hou.Node >

Methods

Methods inherited from hou.Node: curChild, evalParm, createNode, move, clearParmAliases, copyNetworkBox, reorderChildrenToEnd, allSubChildrenOfType, deleteChild, childTypeCategory, children, isInsideLockedHDA, appendComment, removeColorRampKey, addSpareParmTuple, findNetworkBox, fileReferences, relativePathTo, setSelected, removeSpareParmTuple, addSpareParmFolder, indirectInputs, childrenOfType, inputConnectors, modificationTime, findNetworkBoxes, isNetwork, asXML, runInitScripts, cook, permissions, hdaModule, inputAncestors, outputConnections, name, parmsInFolder, subpathUpToNonSubnet, parmTuplesInFolder, saveCookCodeToFile, nodeGroups, creator, setNextInput, loadPresets, nodeGroup, parmTuple, extraOutputs, selectedChildren, errors, hide, saveDefinition, addPermissions, removePermissions, setColorRampKey, isSelected, isLocked, extractAndDelete, setPermissions, findNodes, expressionLanguage, parmTuples, parent, matchesDefinition, matchCurrentDefinition, isCurrent, path, setPosition, setDeleteScript, pickedChildrenRecursively, __ne__, setColor, pickedChildren, createDigitalAsset, asCode, inputs, comment, color, outputConnectors, __getitem__, setInput, saveCompiledCookCodeToFile, reorderChildrenToBeginning, parms, size, parmAliases, findParms, allowEditingOfContents, reorderChildrenAfter, extraInputs, layoutChildren, deleteScript, isHidden, fileReferencePatterns, spareParms, setName, unsetInput, outputs, parm, setCreatorState, __eq__, networkBoxes, setExpressionLanguage, info, showFloatingDetailsViewWindow, type, parmToNodeReferences, creationTime, showFloatingParmWindow, referencedNodes, removeSpareParmFolder, _getArgumentAutoComplete, insertInput, creatorState, addNodeGroup, setFirstInput, saveOldStylePresetsFile, stampValue, collapseIntoSubnet, setCurrent, destroy, changeNodeType, evalParmTuple, node, moveToGoodPosition, digitsInName, warnings, glob, position, loadOldStylePresetsFile, createNetworkBox, savePresets, reorderChildrenBefore, colorRampKeys, setComment, allSubChildren, sessionId, inputConnections, matchesCurrentDefinition

bypass(self, on)

Turns the node’s bypass flag on or off, making this node have no effect.

inputDependencies(self) → (tuple of hou.RopNode, tuple of tuples of float)

Returns the input dependencies of the ROP node, consisting of ROPs, and the frames that need to be be rendered prior to rendering the ROP.

This method returns a tuple of two elements:

  • The first element is a sequence of the hou.RopNode objects representing the input dependencies.

  • The second element is a sequence, where each element corresponds to the RopNode object at the same position in the first sequence, and is a sequence of floats representing the frames that must be rendered for the corresponding RopNode.

isBypassed(self)bool

Returns whether this node’s bypass flag is on.

isLocked(self)bool

Returns whether this node’s lock flag is on.

render(self, frame_range=(), res=(), output_file=None, output_format=None, to_flipbook=False, quality=2, ignore_inputs=False, method=RopByRop, ignore_bypass_flags=False, ignore_lock_flags=False)

Renders this node and optionally any of its inputs. Inputs are recursively processed (unless ignore_inputs is True), so that all descendents are rendered in the proper order before this node is rendered.

frame_range

Sequence of 2 or 3 values, overrides the frame range and frame increment to render. The first two values specify the start and end frames, and the third value (if given) specifies the frame increment. If no frame increment is given and the ROP node doesn’t specify a frame increment, then a value of 1 will be used. If no frame range is given, and the ROP node doesn’t specify a frame range, then the current frame will be rendered.

res

Sequence of two scaling factors that will be used to scale the resolution of the image, along the x- and y-axes. The scaling factors will be applied to the node and all dependencies that are also rendered.

output_file

Overrides the location to which the image is written.

output_format

Overrides the format of the image.

to_flipbook

If True, renders this node to a flipbook.

quality

Overrides the render quality.

ignore_inputs

If True, renders only this node (does not render any of its dependencies).

method

Either hou.renderMethod.RopByRop or hou.renderMethod.FrameByFrame. The default is ROP by ROP: each ROP will render its entire sequence before proceeding to the next ROP. If you specify FrameByFrame, all ROPs will render the first frame, then the second, etc.

This parameter is only relevant when rendering ROPs in a dependency network.

ignore_bypass_flags

If True, renders this node even if its bypass flag is on.

ignore_lock_flags

If True, ignores any lock flags on this node and its dependencies.

setLocked(self, on)

Sets this node’s lock flag on or off. The lock flag caches the node’s data and the data from its inputs and prevents them from being recalculated during cooking.

Replaces

opset command , render command , opflag expression function , opget command