SkinningTools.Maya.tools.holdFetch
¶
Module Contents¶
Functions¶
|
clean the connections and objects fetched |
|
fetch the holded objects |
|
hold the current selected objects |
|
cleanup identifying attributes to the objects about to be stored |
add identifying attributes to the objects about to be stored |
|
|
based on top nodes imported we are going to check what is added to the scene |
-
SkinningTools.Maya.tools.holdFetch.
cleanupFetch
(topLevelDagObjects, remainingTopDagNodes)¶ clean the connections and objects fetched
- Parameters
topLevelDagObjects (list) – all objects that are part of the root of the scene before fetch
remainingTopDagNodes (list) – all objects that are part of the root of the scene after fetch
- Returns
newly added top level nodes
- Return type
list
-
SkinningTools.Maya.tools.holdFetch.
fetch
()¶ fetch the holded objects this is an override function for the paste (ctrl+v) function it forces only clean connections to be pasted in the current scene without making a mess out of it
- Returns
created nodes
- Return type
list
-
SkinningTools.Maya.tools.holdFetch.
hold
(Force=False)¶ hold the current selected objects this is an override function for the copy (ctrl+c) function it forces only clean connections to be copied and stored somewhere else so when pasted the scene isn’t a mess
- Parameters
Force (bool) – if True forces the export of selected object to take place ,if False it will not force the action (might break in some cases)
-
SkinningTools.Maya.tools.holdFetch.
removeSelectionFromAttrs
(nodes)¶ cleanup identifying attributes to the objects about to be stored
- Parameters
nodes (list) – the nodes that are imported into the new scene will have their attribute removed
-
SkinningTools.Maya.tools.holdFetch.
saveSelectionToAttrs
()¶ add identifying attributes to the objects about to be stored
- Returns
the current selection we want to hold
- Return type
list
-
SkinningTools.Maya.tools.holdFetch.
selectFromAttrs
(topNodes)¶ based on top nodes imported we are going to check what is added to the scene
- Parameters
topNodes (list) – the topnodes that are imported into the new scene
- Returns
all new added nodes
- Return type
list