Friday 23 June 2017

Making Maya Scene Lite

Making Maya Scene Lite.

#isHistoryIntrest


This command switch off the history on the geometry (that is having any deformer) and makes the scene file lite.

#isHistoryIntrest
import maya.cmds as cmds
mesh = cmds.ls(sl=1)
for geo in mesh:
    {cmds.setAttr(geo+'.ihi',0) for geo in cmds.ls()}



However, while switching on the history brings out hidden groupId and Groupparts of the corresponding deformers.

#isHistoryIntrest
import maya.cmds as cmds
mesh = cmds.ls(sl=1)
for geo in mesh:
    {cmds.setAttr(geo+'.ihi',1) for geo in cmds.ls()}

To see the result, the geometry should be de-selected and selected again.

Selecting a single geometry to hide the 'HistoryIntrest', results in hidding the history of all the geometry in the scene.

Any thoughts ! Please use the comment area to share.

No comments:

Post a Comment

New Post

Rigging Mentorship

 Contact for Mentorship:      E-mail : shinyprem@gmail.com