Skip to content

Instantly share code, notes, and snippets.

@fredrikaverpil
Last active June 22, 2023 19:37
Show Gist options
  • Save fredrikaverpil/c7dddc44b87c8a3ee4d1007e9c240904 to your computer and use it in GitHub Desktop.
Save fredrikaverpil/c7dddc44b87c8a3ee4d1007e9c240904 to your computer and use it in GitHub Desktop.
Maya render layer callables

Index

acceptImport activate addAttribute addDefaultMembers addExternalContentForFileAttr addItemObserver addListObserver addOpaqueData ancestors aovCollectionInstance appendChild appendCollection apply attachChild attachCollection attachOverride attributeAffects clearListObservers clearMemberNodesCache compute connectionBroken connectionMade copyInternalData createAbsoluteOverride createCollection createRelativeOverride creator deactivate decode dependsOn descendantAdded detachChild detachCollection doNotWrite encode findCollection findIn forceCache getBack getChildren getCollectionByName getCollections getCorrespondingCollection getDefaultCollection getEnabledSelectedNodeNames getExternalContent getFilesToArchive getFirstCollectionIndex getFront getImportedStatus getInternalValueInContext getMemberNodesCache getMembers getNext getNotes getNumIsolatedChildren getOpaqueData getOverrides getPrevious hasAOVCollectionInstance hasCollection hasDefaultCollection hasItemObserver hasLightsCollectionInstance hasOpaqueData hasRenderSettingsCollectionInstance inheritAttributesFrom initListItems initializer internalArrayCount isAbstractClass isAcceptableChild isPassiveOutput isRenderable isVisible itemAdded itemChanged itemRemoved legalConnection legalDisconnection lightsCollectionInstance makeVisible name needsRefresh parent passThroughToMany passThroughToOne postConstructor removeItemObserver removeListObserver removeOpaqueData renderSettingsCollectionInstance setBack setDependentsDirty setDoNotWrite setExternalContent setExternalContentForFileAttr setFront setImportedStatus setInternalValueInContext setMPSafe setMemberNodesCache setName setNext setNotes setParent setPrevious setRenderable shouldSave thisMObject type typeId typeName unapply

Callable

acceptImport

<type 'instancemethod'>

Help on method acceptImport in module maya.app.renderSetup.model.renderLayer:

acceptImport(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



activate

<type 'instancemethod'>

Help on method activate in module maya.app.renderSetup.model.nodeList:

activate(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Called when this list item is inserted into the list.
    Override this method to do any scene specific initialization.

None



addAttribute

<type 'builtin_function_or_method'>

Help on built-in function addAttribute:

addAttribute(...)
    addAttribute(attr) -> None
    
    This method adds a new attribute to a user defined node type during the type's initialization.
    
    This method will only work during the static initialization method of the user defined node class.  The initialization method is the one that is passed into  MFnPlugin.registerNode(). The attributes must first be created using one of the MFnAttribute classes, and can then be added using this method.
    
    For compound attributes, the proper way to use this method is by calling it with the parent attribute. If a compound attribute is passed, this method will add all of its children.
    NOTE: A failure will occur if you attempt to call addAttribute() on the children of a compound attribute.
    
    * attr (MObject) - new attribute to add.

None



addDefaultMembers

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.common.guard:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



addExternalContentForFileAttr

<type 'builtin_function_or_method'>

Help on built-in function addExternalContentForFileAttr:

addExternalContentForFileAttr(...)
    addExternalContentForFileAttr(table, attr) -> bool
    
    This method is a helper for derived clases implementing getExternalContent().  It augments the external content info table passed in with an entry describing external content whose location is described by the specified attribute.
    
    The method will not overwrite existing items, i.e. items with the same key. (attribute name).  In this context, overwriting an item means the caller has called this function twice with the same attribute, or that two separate but identically named attributes were used.  If replacing an entry is the desired effect, it is the caller's responsibility to erase the previous item first.
    
    * table [OUT] (MExternalContentInfoTable) - table The table in which the new entry will be added.
    * attr (MObject) - The attribute for which the plug value will be queried for a location.
    
    Returns True if an item was sucessfully added to the table.  False if the attribute does not describe a non-empty location, or an item with the same key was already present in the table.

None



addItemObserver

<type 'instancemethod'>

Help on method addItemObserver in module maya.app.renderSetup.model.observable:

addItemObserver(self, obs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Add an observers to this item.
    
    Observers must be bound methods (e.g. given an instance c of class
    C, c.methodName), and are kept as weak references.

None



addListObserver

<type 'instancemethod'>

Help on method addListObserver in module maya.app.renderSetup.model.nodeList:

addListObserver(self, obs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Add an observer to this list.
    
    Observers are kept as weak references.  The order in which
    observers are called is unspecified.

None



addOpaqueData

<type 'instancemethod'>

Help on method addOpaqueData in module maya.app.renderSetup.model.childNode:

addOpaqueData(self, key, data) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



ancestors

<type 'instancemethod'>

Help on method ancestors in module maya.app.renderSetup.model.nodeList:

ancestors(self, root=None) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Returns the inclusive list of parents of this node.
    
    The head (start) of the list is the root, and the tail (end) of the
    list is this node.  If a root argument is given, iteration will
    stop at and include this root node, if found.

None



aovCollectionInstance

<type 'instancemethod'>

Help on method aovCollectionInstance in module maya.app.renderSetup.model.renderLayer:

aovCollectionInstance(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get the AOV collection instance for this render layer,
    creating it if it doesn't exists as long as renderer 
    callbacks are registered for the current renderer.

None



appendChild

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



appendCollection

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



apply

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.common.guard:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



attachChild

<type 'instancemethod'>

Help on method attachCollection in module maya.app.renderSetup.model.renderLayer:

attachCollection(self, pos, child) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Attach a collection at a specific position

None



attachCollection

<type 'instancemethod'>

Help on method attachCollection in module maya.app.renderSetup.model.renderLayer:

attachCollection(self, pos, child) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Attach a collection at a specific position

None



attachOverride

<type 'instancemethod'>

Help on method attachOverride in module maya.app.renderSetup.model.renderLayer:

attachOverride(self, overrideName) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



attributeAffects

<type 'builtin_function_or_method'>

Help on built-in function attributeAffects:

attributeAffects(...)
    attributeAffects(whenChanges, isAffected) -> None
    
    This method specifies that a particular input attribute affects a specific output attribute.  This is required to make evaluation efficient.  When an input changes, only the affected outputs will be computed. Output attributes cannot be keyable - if they are keyable, this method will fail.
    
    This method must be called for every attribute dependency when initializing the node's attributes.  The attributes must first be added using the MPxNode.addAttribute() method.  Failing to call this method will cause the node not to update when its inputs change. If there are no calls to this method in a node's initialization, then the compute method will never be called.
    
    This method will only work during the static initialization method of the user defined node class.  The initialization method is the one that is passed into MFnPlugin.registerNode().  As a result, it does not work with dynamic attributes. For an alternate solution which handles dynamic as well as non-dynamic attributes refer to MPxNode.setDependentsDirty.()
    
    * whenChanges (MObject) - input attribute - MObject that points to an input attribute that has already been added.
    * isAffected (MObject) - affected output attribute - MObject that points to an output attribute that has already been added.

None



clearListObservers

<type 'instancemethod'>

Help on method clearListObservers in module maya.app.renderSetup.model.nodeList:

clearListObservers(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



clearMemberNodesCache

<type 'instancemethod'>

Help on method clearMemberNodesCache in module maya.app.renderSetup.model.renderLayer:

clearMemberNodesCache(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



compute

<type 'builtin_function_or_method'>

Help on built-in function compute:

compute(...)
    compute(plug, dataBlock) -> self
    
    This method should be overridden in user defined nodes.
    
    Recompute the given output based on the nodes inputs.  The plug represents the data value that needs to be recomputed, and the data block holds the storage for all of the node's attributes.
    
    The MDataBlock will provide smart handles for reading and writing this node's attribute values.  Only these values should be used when performing computations.
    
    When evaluating the dependency graph, Maya will first call the compute method for this node.  If the plug that is provided to the compute indicates that that the attribute was defined by the Maya parent node, the compute method should return None.  When this occurs, Maya will call the internal Maya node from which the user-defined node is derived to compute the plug's value.
    
    This means that a user defined node does not need to be concerned with computing inherited output attributes.  However, if desired, these can be safely recomputed by this method to change the behaviour of the node.
    
    * plug (MPlug) - plug representing the attribute that needs to be recomputed.
    * block (MDataBlock) - data block containing storage for the node's attributes.

None



connectionBroken

<type 'builtin_function_or_method'>

Help on built-in function connectionBroken:

connectionBroken(...)
    connectionBroken( plug, otherPlug, asSrc) -> self
    
    This method gets called when connections are broken with attributes of this node.
    
    * plug (MPlug) - attribute on this node.
    * otherPlug (MPlug) - attribute on other node.
    * asSrc (bool) - is this plug a source of the connection.

None



connectionMade

<type 'builtin_function_or_method'>

Help on built-in function connectionMade:

connectionMade(...)
    connectionMade(plug, otherPlug, asSrc) -> self
    
    This method gets called when connections are made to attributes of this node.
    
    * plug (MPlug) - attribute on this node.
    * otherPlug (MPlug) - attribute on other node.
    * asSrc (bool) - is this plug a source of the connection.

None



copyInternalData

<type 'builtin_function_or_method'>

Help on built-in function copyInternalData:

copyInternalData(...)
    copyInternalData(node) -> self
    
    This method is overriden by nodes that store attribute data in some internal format.
    
    On duplication this method is called on the duplicated node with the node being duplicated passed as the parameter.  Overriding this method gives your node a chance to duplicate any internal data you've been storing and manipulating outside of normal attribute data.
    
    * node (MPxNode) - the node that is being duplicated.

None



createAbsoluteOverride

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



createCollection

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



createRelativeOverride

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



creator

<type 'function'>

Help on function creator in module maya.app.renderSetup.model.renderLayer:

creator()

None



deactivate

<type 'instancemethod'>

Help on method deactivate in module maya.app.renderSetup.model.nodeList:

deactivate(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Called when this list item is removed from the list.
    Override this method to do any scene specific teardown.

None



decode

<type 'instancemethod'>

Help on method decode in module maya.app.renderSetup.model.serializableNode:

decode(self, dict, mergeType, prependToName) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



dependsOn

<type 'builtin_function_or_method'>

Help on built-in function dependsOn:

dependsOn(...)
    dependsOn( plug, otherPlug) -> bool/None
    
    This method may be overridden by the user defined node. It should only be required to override this on rare occasions.
    
    This method determines whether a specific attribute depends on another attribute.
    
    You should return None to specify that Maya should determines the dependency (default).
    
    This is mainly to define dependency of dynamic attributes, since attributeAffects does not work with dynamic attributes.
    
    * plug (MPlug) - attribute on this node.
    * otherPlug (MPlug) - attribute on other node.

None



descendantAdded

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.renderLayer:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



detachChild

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



detachCollection

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



doNotWrite

<type 'builtin_function_or_method'>

Help on built-in function doNotWrite:

doNotWrite(...)
    doNotWrite() -> bool
    
    use this method to query the "do not write" state of this proxy node. True is returned if this node will not be saved when the maya model is written out.

None



encode

<type 'instancemethod'>

Help on method encode in module maya.app.renderSetup.model.serializableNode:

encode(self, notes=None) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



findCollection

<type 'instancemethod'>

Help on method findCollection in module maya.app.renderSetup.model.renderLayer:

findCollection(self, predicate, creator=None) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Find the collection of this layer satisfying the predicate function or creates it
    with the creator function if not found and a creator function is specified.
    Function signatures are:
      predicate(collection): returns boolean.
      creator(void) : returns the created node.

None



findIn

<type 'instancemethod'>

Help on method findIn in module maya.app.renderSetup.model.renderLayer:

findIn(self, nodeNames, includeSelf=True) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Generator that returns all the collections in that layer that contain at least on of the 
    object in nodeNames. Optionally also returns self (with includeSelf=True) if the object is in the layer.

None



forceCache

<type 'builtin_function_or_method'>

Help on built-in function forceCache:

forceCache(...)
    forceCache(ctx=fsNormal) -> MDataBlock
    
    Get the datablock for this node. If there is no datablock then one will be created.
    NOTE: This should be used only in places where fast access to the datablock outside of a compute is critical such as the transformUsing method of MPxSurfaceShape.
    
    * ctx (MDGContext) - The context in which the node will evaluate.

None



getBack

<type 'instancemethod'>

Help on method getBack in module maya.app.renderSetup.model.nodeList:

getBack(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getChildren

<type 'instancemethod'>

Help on method getCollections in module maya.app.renderSetup.model.renderLayer:

getCollections(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get list of all existing Collections

None



getCollectionByName

<type 'instancemethod'>

Help on method getCollectionByName in module maya.app.renderSetup.model.renderLayer:

getCollectionByName(self, collectionName, nested=False) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Look for an existing collection by name

None



getCollections

<type 'instancemethod'>

Help on method getCollections in module maya.app.renderSetup.model.renderLayer:

getCollections(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get list of all existing Collections

None



getCorrespondingCollection

<type 'instancemethod'>

Help on method getCorrespondingCollection in module maya.app.renderSetup.model.renderLayer:

getCorrespondingCollection(self, nodeName, selectedCollectionName) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    The behavior is to look for Render Settings attribute to add the override
    in the Render Settings collection if it exists, then to use the selected
    collection; otherwise, to create a new collection containing the override.

None



getDefaultCollection

<type 'instancemethod'>

Help on method getDefaultCollection in module maya.app.renderSetup.model.renderLayer:

getDefaultCollection(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get the default collection where newly created nodes are placed

None



getEnabledSelectedNodeNames

<type 'instancemethod'>

Help on method getMembers in module maya.app.renderSetup.model.renderLayer:

getMembers(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get the names of the layer's DAG node members.
    
    The layer's members are DAG nodes selected by the layer's
    collections, based on whether a collection is enabled or solo'ed. 
    
    @rtype: list
    @return: list of node names. Empty if none found.

None



getExternalContent

<type 'builtin_function_or_method'>

Help on built-in function getExternalContent:

getExternalContent(...)
    getExternalContent(table) -> self
    
    The table populated by this method must include the location of all the content (files) used by this node, including those that do not exist.  See MExternalContentInfoTable for details.
    
    Keys used to add items to this table will be the same that get passed to setExternalContent through its MExternalContentLocationTable parameter to perform a batched change of content location.
    
    When implementing getExternalContent, you are responsible for forwarding the call to the base class when it makes sense to do so, so that base classes  can also add their external content to the table.
    
    The default implementation does nothing.
    
    * table [OUT] (MExternalContentInfoTable) - Content information table that this method must populate.

None



getFilesToArchive

<type 'builtin_function_or_method'>

Help on built-in function getFilesToArchive:

getFilesToArchive(...)
    getFilesToArchive(shortName=False, unresolvedName=False, markCouldBeImageSequence=False) -> list of strings
    
    Use this method to return all external files used by this node. This file list will be used by the File > Archive zip feature, maya.exe -archive and the `file -q -list` mel command.
    
    Only include files that exist.
    
    If shortName is True, return just the filename portion of the path. Otherwise, return a full path.
    
    If unresolvedName is True, return the path before any resolution has been done (i.e leave it as a relative path, include unexpanded environment variables,  tildes, ".."s etc). Otherwise, resolve the file     path and return an absolute path (to resolve with standard Maya path resolution, use MFileObject.resolvedFullName()).
    
    * shortName (bool) - If True, only add the filename of the path.
    * unresolvedName (bool) - If True, add paths before any resolution, rather than absolute paths.
    * markCouldBeImageSequence (bool) - If True, append an asterisk after any file path that could be an image sequence (note: only used by maya.exe -archive).

None



getFirstCollectionIndex

<type 'instancemethod'>

Help on method getFirstCollectionIndex in module maya.app.renderSetup.model.renderLayer:

getFirstCollectionIndex(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getFront

<type 'instancemethod'>

Help on method getFront in module maya.app.renderSetup.model.nodeList:

getFront(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    # List front and back operations.
    #
    # The list front and back are destination message plugs, so that there
    # can only be one connection to them, as there is only one front and
    # one back list item.  They are connected to the front and back list
    # items through the list item's message plug.

None



getImportedStatus

<type 'instancemethod'>

Help on method getImportedStatus in module maya.app.renderSetup.model.childNode:

getImportedStatus(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getInternalValueInContext

<type 'builtin_function_or_method'>

Help on built-in function getInternalValueInContext:

getInternalValueInContext(...)
    getInternalValueInContext(plug, dataHandle, ctx) -> bool
    
    This method is overriden by nodes that store attribute data in some internal format.
    
    The internal state of attributes can be set or queried using the setInternal and internal methods of MFnAttribute.
    
    When internal attribute values are queried via getAttr or MPlug.getValue() this method is called.
    
    * plug (MPlug) - the attribute that is being queried.
    * dataHandle [OUT] (MDataHandle) - the dataHandle to store the attribute value.
    * ctx (MDGContext) - the context the method is being evaluated in.

None



getMemberNodesCache

<type 'instancemethod'>

Help on method getMemberNodesCache in module maya.app.renderSetup.model.renderLayer:

getMemberNodesCache(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getMembers

<type 'instancemethod'>

Help on method getMembers in module maya.app.renderSetup.model.renderLayer:

getMembers(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get the names of the layer's DAG node members.
    
    The layer's members are DAG nodes selected by the layer's
    collections, based on whether a collection is enabled or solo'ed. 
    
    @rtype: list
    @return: list of node names. Empty if none found.

None



getNext

<type 'instancemethod'>

Help on method getNext in module maya.app.renderSetup.model.nodeList:

getNext(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Return the list item following this one.
    
    If there is no next item, returns None.

None



getNotes

<type 'instancemethod'>

Help on method getNotes in module maya.app.renderSetup.model.nodeNotes:

getNotes(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getNumIsolatedChildren

<type 'instancemethod'>

Help on method getNumIsolatedChildren in module maya.app.renderSetup.model.renderLayer:

getNumIsolatedChildren(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getOpaqueData

<type 'instancemethod'>

Help on method getOpaqueData in module maya.app.renderSetup.model.childNode:

getOpaqueData(self, key) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getOverrides

<type 'instancemethod'>

Help on method getOverrides in module maya.app.renderSetup.model.renderLayer:

getOverrides(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



getPrevious

<type 'instancemethod'>

Help on method getPrevious in module maya.app.renderSetup.model.nodeList:

getPrevious(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Return the list item before this one.
    
    If there is no previous item, returns None.

None



hasAOVCollectionInstance

<type 'instancemethod'>

Help on method hasAOVCollectionInstance in module maya.app.renderSetup.model.renderLayer:

hasAOVCollectionInstance(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Returns True if this layer has the AOV collection instance created.

None



hasCollection

<type 'instancemethod'>

Help on method hasCollection in module maya.app.renderSetup.model.renderLayer:

hasCollection(self, collectionName) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



hasDefaultCollection

<type 'instancemethod'>

Help on method hasDefaultCollection in module maya.app.renderSetup.model.renderLayer:

hasDefaultCollection(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get the default collection where newly created nodes are placed

None



hasItemObserver

<type 'instancemethod'>

Help on method hasItemObserver in module maya.app.renderSetup.model.observable:

hasItemObserver(self, obs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Query whether this item has the argument observer.

None



hasLightsCollectionInstance

<type 'instancemethod'>

Help on method hasLightsCollectionInstance in module maya.app.renderSetup.model.renderLayer:

hasLightsCollectionInstance(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Returns True if this layer has the lights collection instance created.

None



hasOpaqueData

<type 'instancemethod'>

Help on method hasOpaqueData in module maya.app.renderSetup.model.childNode:

hasOpaqueData(self, key) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



hasRenderSettingsCollectionInstance

<type 'instancemethod'>

Help on method hasRenderSettingsCollectionInstance in module maya.app.renderSetup.model.renderLayer:

hasRenderSettingsCollectionInstance(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Returns True if this layer has the render settings collection instance created.

None



inheritAttributesFrom

<type 'builtin_function_or_method'>

Help on built-in function inheritAttributesFrom:

inheritAttributesFrom(...)
    inheritAttributesFrom(parentClassName) -> None
    
    This method allows a class of plugin node to inherit all of the attributes of a second class of plugin node.
    
    This method will only work during the static initialization method of the user defined node class and must be called before any other attributes have been added.  The initialization method is the one that is passed into  MFnPlugin.registerNode().
    
    A plugin node may only inherit attributes from one other class of plugin node. Attempting to call this method multiple times within a node's initialization method will result in an error.
    
    Both node classes must be registered using the same MPxNode type, listed in MPxNode.type().
    
    * parentClassName (string) - class of node to inherit attributes from.

None



initListItems

<type 'instancemethod'>

Help on method initListItems in module maya.app.renderSetup.model.nodeList:

initListItems(cls) method of __builtin__.type instance
    Create and return a source message attribute that connects to all list items.

None



initializer

<type 'function'>

Help on function initializer in module maya.app.renderSetup.model.renderLayer:

initializer()

None



internalArrayCount

<type 'builtin_function_or_method'>

Help on built-in function internalArrayCount:

internalArrayCount(...)
    internalArrayCount(plug, ctx) -> int
    
    This method is overriden by nodes that have internal array attributes which are not stored in Maya's datablock. This method is used by Maya to determine the non-sparse count of array elements during file io. If the internal array is stored sparsely, you should return the maximum index of the array plus one. If the internal array is non-sparse then return the length of the array.
    
    This method does not need to be implemented for attributes that are stored in the datablock since Maya will use the datablock size.
    
    If this method is overriden, it should return -1 for attributes which it does not handle. Maya will use the datablock size to determine the array length when -1 is returned.
    
    * plug (MPlug) - the array plug.
    * ctx (MDGContext) - the context.

None



isAbstractClass

<type 'instancemethod'>

Help on method isAbstractClass in module maya.app.renderSetup.model.renderLayer:

isAbstractClass(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



isAcceptableChild

<type 'instancemethod'>

Help on method isAcceptableChild in module maya.app.renderSetup.model.renderLayer:

isAcceptableChild(self, modelOrData) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Check if the model could be a child of the render layer model

None



isPassiveOutput

<type 'builtin_function_or_method'>

Help on built-in function isPassiveOutput:

isPassiveOutput(...)
    isPassiveOutput(plug) -> bool
    
    This method may be overridden by the user defined node if it wants to provide output attributes which do not prevent value modifications to the destination attribute. For example, output plugs on animation curve nodes are passive. This allows the attributes driven by the animation curves to be set to new values by the user.
    
    * plug (MPlug) - plug representing output in question.

None



isRenderable

<type 'instancemethod'>

Help on method isRenderable in module maya.app.renderSetup.model.renderLayer:

isRenderable(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



isVisible

<type 'instancemethod'>

Help on method isVisible in module maya.app.renderSetup.model.renderLayer:

isVisible(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



itemAdded

<type 'instancemethod'>

Help on method itemAdded in module maya.app.renderSetup.model.nodeList:

itemAdded(self, listItem) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Call the listItemAdded() methods on list item observers
    
    The order in which observers are called is not specified.

None



itemChanged

<type 'instancemethod'>

Help on method itemChanged in module maya.app.renderSetup.model.observable:

itemChanged(self, *posArgs, **kwArgs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Call item changed callbacks.
    
    The order in which observers are called is not specified.

None



itemRemoved

<type 'instancemethod'>

Help on method itemRemoved in module maya.app.renderSetup.model.nodeList:

itemRemoved(self, listItem) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Call the listItemRemoved() methods on list item observers
    
    The order in which observers are called is not specified.

None



legalConnection

<type 'builtin_function_or_method'>

Help on built-in function legalConnection:

legalConnection(...)
    legalConnection(plug, otherPlug, asSrc) -> bool/None
    
    This method allows you to check for legal connections being made to attributes of this node.
    
    You should return None to specify that maya should handle this connection if you are unable to determine if it is legal.
    
    * plug (MPlug) - attribute on this node.
    * otherPlug (MPlug) - attribute on other node.
    * asSrc (bool) - is this plug a source of the connection.

None



legalDisconnection

<type 'builtin_function_or_method'>

Help on built-in function legalDisconnection:

legalDisconnection(...)
    legalDisconnection(plug, otherPlug, arsSrc) -> bool/None
    
    This method allows you to check for legal disconnections being made to attributes of this node.
    
    You should return None to specify that maya should handle this disconnection if you are unable to determine if it is legal.
    
    * plug (MPlug) - attribute on this node.
    * otherPlug (MPlug) - attribute on other node.
    * asSrc (boool) - is this plug a source of the connection.

None



lightsCollectionInstance

<type 'instancemethod'>

Help on method lightsCollectionInstance in module maya.app.renderSetup.model.renderLayer:

lightsCollectionInstance(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get the lights collection instance for this render layer,
    creating it if it doesn't exists.

None



makeVisible

<type 'instancemethod'>

Help on method makeVisible in module maya.app.renderSetup.model.renderLayer:

makeVisible(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



name

<type 'builtin_function_or_method'>

Help on built-in function name:

name(...)
    name() -> string
    
    Returns the name of this particular instance of this class.  Each objectin the dependency graph has a name.  This name will be used by the UIand by MEL.
    
    It is not necessary to override this method.
    
    Returns the name of the node

None



needsRefresh

<type 'instancemethod'>

Help on method needsRefresh in module maya.app.renderSetup.model.renderLayer:

needsRefresh(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Following some changes the instance must be updated.

None



parent

<type 'instancemethod'>

Help on method parent in module maya.app.renderSetup.model.nodeList:

parent(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Returns the list to which this item belongs.
    
    If the item belongs to no list, None is returned.  This method
    has O(1) time complexity.

None



passThroughToMany

<type 'builtin_function_or_method'>

Help on built-in function passThroughToMany:

passThroughToMany(...)
    passThroughToMany(plug, plugArray) -> bool
    
    This method is overriden by nodes that want to control the traversal behavior of some Maya search algorithms which traverse the history/future of shape nodes looking for directly related nodes. In particular, the Artisan paint code uses this method when searching for paintable nodes, and the disk cache code uses this method when searching for upstream cacheFile nodes.
    
    If this method is not implemented or returns False, the base class Maya implementation of this method calls passThroughToOne and returns the results of that call.
    
    * plug (MPlug) - the plug.
    * plugArray (MPlugArray) - the corresponding plugs.

None



passThroughToOne

<type 'builtin_function_or_method'>

Help on built-in function passThroughToOne:

passThroughToOne(...)
    passThroughToOne(plug) -> plug
    
    This method may be overriden by nodes that have a one-to-one relationship between an input attribute and a corresponding output attribute. This method is used by Maya to perform the following capabilities:
    
    - When this node is deleted, the delete command will rewire the source of the input attribute to the destination of the output attribute if the source and destination are connected to nodes that are not deleted.
    - History traversal algorithms such as the bakePartialHistory command use this method to direct its traversal through a shape's construction history.
    - The base class Maya implementation of passThroughToAll will call this method if passThroughToAll returns False.
    
    * plug (MPlug) - the plug.

None



postConstructor

<type 'instancemethod'>

Help on method postConstructor in module maya.app.renderSetup.model.renderLayer:

postConstructor(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



removeItemObserver

<type 'instancemethod'>

Help on method removeItemObserver in module maya.app.renderSetup.model.observable:

removeItemObserver(self, obs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Remove an observer from this item.
    
    ValueError is raised by the remove item observer method if the
    argument observer is not found.

None



removeListObserver

<type 'instancemethod'>

Help on method removeListObserver in module maya.app.renderSetup.model.nodeList:

removeListObserver(self, obs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Remove an observer from this list.
    
    Observers are kept as weak references.  ValueError is raised by the 
    remove listItem method if the argument observer is not found.

None



removeOpaqueData

<type 'instancemethod'>

Help on method removeOpaqueData in module maya.app.renderSetup.model.childNode:

removeOpaqueData(self, key) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



renderSettingsCollectionInstance

<type 'instancemethod'>

Help on method renderSettingsCollectionInstance in module maya.app.renderSetup.model.renderLayer:

renderSettingsCollectionInstance(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Get the render settings collection instance for this render layer,
    creating it if it doesn't exists.

None



setBack

<type 'instancemethod'>

Help on method setBack in module maya.app.renderSetup.model.nodeList:

setBack(self, item) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setDependentsDirty

<type 'builtin_function_or_method'>

Help on built-in function setDependentsDirty:

setDependentsDirty(...)
    setDependentsDirty(plug, plugArray) -> self
    
    This method can be overridden in user defined nodes to specify which plugs should be set dirty based upon an input plug which Maya is marking dirty. The list of plugs for Maya to mark dirty is returned by the plug array. This method handles both dynamic as well as non-dynamic plugs and is useful in the following ways:
    
    
    
    - Allows attributeAffects-style relationships to be handled for dynamically-added attributes. Since MPxNode.attributeAffects() can only be used with non-dynamic attributes, use of this method allows a way for all attributes of a node to affect one another, both dynamic and non-dynamic.
    
    - Provides more flexible relationships than what is available with MPxNode.attributeAffects(). For example, you may wish to not dirty plugs when the current frame is one. However, as the routine is called during dirty propagation, there are restrictions on what can be done within the routine, most importantly you must not cause any dependency graph computation. For details, see the IMPORTANT NOTE below.
    
    
    
    This method is designed to work harmoniously with MPxNode.attributeAffects() on the same node. Alternately, you can do all affects relationships within a yourNode.setDependentsDirty() implementation.
    
    The body of a user-implemented setDependentsDirty() implementation might look like the following example, which causes the plug called "B" to be set dirty whever plug "A" is changed, i.e. A affects B.
    
    * plug (MPlug) - plug which is being set dirty by Maya.
    * plugArray the programmer should add any plugs which they want to set dirty to this list.

None



setDoNotWrite

<type 'builtin_function_or_method'>

Help on built-in function setDoNotWrite:

setDoNotWrite(...)
    setDoNotWrite(bool) -> self
    
    Use this method to mark the "do not write" state of this proxy node.  If set, this node will not be saved when the Maya model is written out. 
    
    NOTES:
    1. Plug-in "requires" information will be written out with the model when saved.  But a subsequent reload and resave of the file will cause these to go away.
    2. If this node is a DAG and has a parent or children, the "do not write" flag of the parent or children will not be set. It is the developer's responsibility to ensure that the resulting scene file is capable of being read in without errors due to unwritten nodes.

None



setExternalContent

<type 'builtin_function_or_method'>

Help on built-in function setExternalContent:

setExternalContent(...)
    setExternalContent(table) -> self
    
    This is useful in the context of content relocation.  This will be called while the scene is being loaded to apply path changes performed externally. Consequently, interaction with the rest of the scene must be kept to a minimum.  It is however valid to call this method outside of scene loading contexts.
    
    The keys in the map must be the same as the ones provided by the node in getExternalContent.  The values are the new locations.
    
    When implementing setExternalContent, you are responsible for forwarding the call to the base class when it makes sense to do so, so that base classes  can also set their external content.
    
    The default implementation does nothing.
    
    * table Key->location table with new content locations.

None



setExternalContentForFileAttr

<type 'builtin_function_or_method'>

Help on built-in function setExternalContentForFileAttr:

setExternalContentForFileAttr(...)
    setExternalContentForFileAttr(attr, table) -> bool
    
    This method is a helper for derived clases implementing setExternalContent().  It assigns a value to a plug with the one from the table whose key is the same as the passed in attribute name.
    
    The method will not write to the plug if the attribute is not found in the  table.
    
    * attr (MObject) - The attribute of the plug we want to write to.
    * table (MExternalContentLocationTable) - A table which may hold or not the value for a given plug.
    
    Returns True if the plug was successfully written to. False if no entry in the table was named after the attribute or if no plug was found.

None



setFront

<type 'instancemethod'>

Help on method setFront in module maya.app.renderSetup.model.nodeList:

setFront(self, item) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setImportedStatus

<type 'instancemethod'>

Help on method setImportedStatus in module maya.app.renderSetup.model.childNode:

setImportedStatus(self, value) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setInternalValueInContext

<type 'builtin_function_or_method'>

Help on built-in function setInternalValueInContext:

setInternalValueInContext(...)
    setInternalValueInContext(plug, dataHandle, ctx) -> bool
    
    This method is overriden by nodes that store attribute data in some internal format.
    
    The internal state of attributes can be set or queried using the setInternal and internal methods of MFnAttribute.
    
    When internal attribute values are set via setAttr or MPlug.setValue() this method is called.
    
    Another use for this method is to impose attribute limits.
    
    * plug (MPlug) - the attribute that is being set.
    * dataHandle (MDataHandle) - the dataHandle containing the value to set.
    * ctx (MDGContext) - the context the method is being evaluated in.

None



setMPSafe

<type 'builtin_function_or_method'>

Help on built-in function setMPSafe:

setMPSafe(...)
    setMPSafe(bool) -> self
    
    Set a flag to specify if a user defined shading node is safe for multi-processor rendering. For a shading node to be MP safe, it cannot access any shared global data and should only use attributes in the datablock to get input data and store output data. 
    
    This flag does NOT mark a node thread safe for parallel DG evaluation in Viewport 2.0.  To mark a node thread safe for parallel DG evaluation see the setNodeTypeFlag mel command. 
    
    NOTE: This should be called from the postConstructor() method for shading node plug-ins only. If a shading node is non-safe, then it will only be useful during single processor rendering.

None



setMemberNodesCache

<type 'instancemethod'>

Help on method setMemberNodesCache in module maya.app.renderSetup.model.renderLayer:

setMemberNodesCache(self, cache) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setName

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.model.undo:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setNext

<type 'instancemethod'>

Help on method setNext in module maya.app.renderSetup.model.nodeList:

setNext(self, item) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setNotes

<type 'instancemethod'>

Help on method setNotes in module maya.app.renderSetup.model.nodeNotes:

setNotes(self, string) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setParent

<type 'instancemethod'>

Help on method setParent in module maya.app.renderSetup.model.nodeList:

setParent(self, parentListUserNode) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance
    Set the list to which this item belongs.
    
    To remove this item from its list, the parent node argument must be
    None.

None



setPrevious

<type 'instancemethod'>

Help on method setPrevious in module maya.app.renderSetup.model.nodeList:

setPrevious(self, item) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



setRenderable

<type 'instancemethod'>

Help on method setRenderable in module maya.app.renderSetup.model.renderLayer:

setRenderable(self, value) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



shouldSave

<type 'builtin_function_or_method'>

Help on built-in function shouldSave:

shouldSave(...)
    shouldSave(plug) -> bool/None
    
    This method may be overridden by the user defined node.  It should only be required to override this on rare occasions.
    
    This method determines whether a specific attribute of this node should be written out during a file save.  The default behavior is to only write the value if it differs from the default and is not being supplied by a connection.  This behavior should be sufficient in most cases.
    This method is not called for ramp attributes since they should always be written.
    
    * plug (MPlug) - plug representing the attribute to be saved.

None



thisMObject

<type 'builtin_function_or_method'>

Help on built-in function thisMObject:

thisMObject(...)
    thisMObject() -> MObject
    
    Returns the MObject associated with this user defined node.  This makes it possible to use MFnDependencyNode or to construct plugs to this node's attributes.

None



type

<type 'builtin_function_or_method'>

Help on built-in function type:

type(...)
    type() -> int
    
    Returns the type of node that this is.  This is used to differentiate user defined nodes that are derived off different MPx base classes.
    
    It is not necessary to override this method.
    
      kDependNode                    Custom node derived from MPxNode
      kLocatorNode                   Custom locator derived from MPxLocatorNode
      kDeformerNode                  Custom deformer derived from MPxDeformerNode
      kManipContainer                Custom container derived from MPxManipContainer
      kSurfaceShape                  Custom shape derived from MPxSurfaceShape
      kFieldNode                     Custom field derived from MPxFieldNode
      kEmitterNode                   Custom emitter derived from MPxEmitterNode
      kSpringNode                    Custom spring derived from MPxSpringNode
      kIkSolverNode                  Custom IK solver derived from MPxIkSolverNode
      kHardwareShader                Custom shader derived from MPxHardwareShader
      kHwShaderNode                  Custom shader derived from MPxHwShaderNode
      kTransformNode                 Custom transform derived from MPxTransform
      kObjectSet                     Custom set derived from MPxObjectSet
      kFluidEmitterNode              Custom fluid emitter derived from MpxFluidEmitterNode
      kImagePlaneNode                Custom image plane derived from MPxImagePlane
      kParticleAttributeMapperNode   Custom particle attribute mapper derived from MPxParticleAttributeMapperNode
      kCameraSetNode                 Custom director derived from MPxCameraSet
      kConstraintNode                Custom constraint derived from MPxConstraint
      kManipulatorNode               Custom manipulator derived from MPxManipulatorNode
      kClientDeviceNode              Custom threaded device derived from MPxThreadedDeviceNode
      kThreadedDeviceNode            Custom threaded device node
      kAssembly                      Custom assembly derived from MPxAssembly
      kSkinCluster                                  Custom deformer derived from MPxSkinCluster
      kGeometryFilter                               Custom deformer derived from MPxGeometryFilter
             kBlendShape                                    Custom deformer derived from MPxBlendShape

None



typeId

<type 'instancemethod'>

Help on method typeId in module maya.app.renderSetup.model.renderLayer:

typeId(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



typeName

<type 'instancemethod'>

Help on method typeName in module maya.app.renderSetup.model.renderLayer:

typeName(self) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



unapply

<type 'instancemethod'>

Help on method wrapper in module maya.app.renderSetup.common.guard:

wrapper(*args, **kwargs) method of maya.app.renderSetup.model.renderLayer.RenderLayer instance

None



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment