ernstAlert

ARTv2 remove pose data

Jan 20th, 2021
827
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import pymel.core as pm
  2. nodes = pm.ls(type="network")
  3. for node in nodes:
  4.     if node.hasAttr("rigPose"):
  5.         node.deleteAttr("rigPose")
  6.     if node.hasAttr("rigPoseState"):
  7.         node.deleteAttr("rigPoseState")
  8.     if node.hasAttr("modelPose"):
  9.         node.deleteAttr("modelPose")
RAW Paste Data