yaotungyu

dyn chain driver select rnd

Dec 3rd, 2020
757
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hair_setting_ctrls = [cmds.listConnections(h+'.startCurveAttract',s=1)[0] for h in cmds.ls(ns+':*',type='hairSystem') if cmds.listConnections(h+'.startCurveAttract',s=1)!=None]
  2. for a in hair_setting_ctrls:
  3.     print cmds
  4. joints_in_chain = [a for a in cmds.listRelatives(hair_setting_ctrls[0],p=1,f=1,type='joint')[0][1:].split('|') if cmds.nodeType(a)=='joint']
  5. for j in joints_in_chain:
  6.     print cmds.listConnections(j)
  7.  
  8. cmds.ls(hair_setting_ctrls[0],long=1)[0]
  9.  
  10.  
RAW Paste Data