illinoisiop.blogg.se

Maya python setattr of list
Maya python setattr of list







  • worldspace ( bool, optional) – Translate output to worldspace.
  • parent ( DagNode, optional) – Parent to newly cloned node.
  • name ( str, optional) – Name of newly created clone.
  • child ( query = ) is None True clone ( name=None, parent=None, worldspace=False ) ¶Ī “clone” assignes the. child ( contains = "nurbsCurve" ) is None True > b = Double ( default = 5 ) > a. child ( contains = "mesh" ) = c True > a. child ( type = ( "mesh", "transform" ), filter = None ) = d True > a. child ( type = "mesh", filter = None ) = d True > c. file ( new = True, force = True ) > a = createNode ( "transform", "a" ) > b = createNode ( "transform", "b", parent = a ) > c = createNode ( "transform", "c", parent = a ) > d = createNode ( "mesh", "d", parent = c ) > list ( a.
  • query ( dict, optional) – Limit output to nodes with these attributes.
  • contains ( str, optional) – Child must have a shape of this type.
  • filter ( int, optional) – Return only children with this function set.
  • type ( str, optional) – Return only children that match this type.
  • The contains argument only returns transform nodes containingĪ shape of the type provided. children(type=)Ĭhildren ( type=None, filter=110, query=None, contains=None ) ¶Īll returned children are transform nodes, as specified by theįilter argument. Return number of children of a given optional typeĬompared to MFnDagNode.childCount, this function actually returnsĬhildren, not shapes, along with filtering by an optional type. Return a cmdx.BoundingBox of this DAG node child ( type=None, filter=110, query=None, contains=None ) ¶ childCount ( type=None ) ¶ Return a cmdx.BoundingBox of this DAG node bounding_box ¶

    maya python setattr of list

    > parent1 = createNode ( "transform" ) > parent2 = createNode ( "transform" ) > child = createNode ( "transform", parent = parent1 ) > grandchild = createNode ( "transform", parent = child ) > child. findPlug ( "translateX" ) True find_plug ( name, cached=False, safe=True ) ¶ findPlug ( "translateX" ) > isinstance ( plug1, om. > node = createNode ( "transform" ) > plug1 = node. To spot whether caching is causing trouble. This will not performĪny caching and is intended for use during debugging

  • safe ( bool, optional) – (DEPRECATED) Always find the plug through.
  • Means it will run Maya’s findPlug() and cache
  • cached ( bool, optional) – (DEPRECATED) Return cached plug, or.
  • Long and short name of said attribute, which is currently not To encode, then the original and discovered nodes carry oneĪdditional challenges include storing the same plug for both That is, if a node is created and later discovered through a call In the cmdx object which currently does not survive rediscovery. This causes a 25% reduction in time taken for repeatedĪttribute queries. Part of the time taken in querying an attribute is theĪct of finding a plug given its name as a string. exists False findPlug ( name, cached=False, safe=True ) ¶Ĭache previously found plugs, for performance file ( new = True, force = True ) > node.

    maya python setattr of list

    connections ( bool, optional) – Return tuples of the connected plugs.destination ( bool, optional) – Return outputs only.source ( bool, optional) – Return inputs only.plugs ( bool, optional) – Return plugs, rather than nodes.type ( str, optional) – Restrict output to nodes of this type,.unit ( int, optional) – Return plug in this unit,.Yield plugs of node with a connection to any other plug Parameters: Singular version of connections() connections ( type=None, unit=None, plugs=False, source=True, destination=True, connections=False ) ¶ Similar to the UUID of Maya 2016 connection ( type=None, unit=None, plug=False, source=True, destination=True, connection=False ) ¶ This a guaranteed-unique integer (long in Python 2) Return MObjectHandle.hashCode of this node

    #Maya python setattr of list code#

    clear () > node 5.0 > # Plug and value was recomputed code ¶ node = createNode ( "transform" ) > node = 5 > node 5.0 > # Plug was reused > node 5.0 > # Value was reused > node.







    Maya python setattr of list