pymel.core.other.DagNodeName¶
digraph inheritance483aa8b697 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "DagNodeName" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.other.DagNodeName",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DependNodeName" -> "DagNodeName" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DependNodeName" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.other.DependNodeName.html#pymel.core.other.DependNodeName",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "NameParser" -> "DependNodeName" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NameParser" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.other.NameParser.html#pymel.core.other.NameParser",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; }
- class DagNodeName¶
- firstParent()¶
firstParentOf
- getParent(generations=1)¶
Returns the parent node
- Modifications:
added optional generations flag, which gives the number of levels up that you wish to go for the parent; ie:
>>> DagNodeName("NS1:TopLevel|Next|ns2:Third|Fourth").getParent(2) DagNodeName(u'NS1:TopLevel|Next')
Negative values will traverse from the top, not counting the initial node name:
>>> DagNodeName("NS1:TopLevel|Next|ns2:Third|Fourth").getParent(-3) DagNodeName(u'NS1:TopLevel|Next|ns2:Third')
A value of 0 will return the same node. The default value is 1.
Since the original command returned None if there is no parent, to sync with this behavior, None will be returned if generations is out of bounds (no IndexError will be thrown).
- getRoot()¶
unlike the root command which determines the parent via string formatting, this command uses the listRelatives command
- nodeName()¶
basename
- root()¶
rootOf