Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on_off_attr = 'Hattie_01:C_HairDynamics_Main_Ctrl.DynamicsOnOff'
- on_off_dict = {}
- cmds.setAttr(on_off_attr,1)
- on_off_dict[cmds.getAttr(on_off_attr,asString=1)] = cmds.getAttr(on_off_attr)
- cmds.setAttr(on_off_attr,0)
- on_off_dict[cmds.getAttr(on_off_attr,asString=1)] = cmds.getAttr(on_off_attr)
- # Result: {u'Off': 1, u'On': 0} #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement