graphic:python:maya

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
graphic:python:maya [2021/08/22 19:43] yinggraphic:python:maya [2021/10/02 08:00] – [rigging related] ying
Line 2419: Line 2419:
  
 ===== rigging related ===== ===== rigging related =====
 +  * find source of parentConstraint <code python> 
 +# get parentConstraint source 
 +selected = cmds.ls(sl=1)[0] 
 +links = cmds.listConnections(selected+'.tx' , type='parentConstraint',s=1) 
 +if links is None: 
 +    links = [] 
 +print(links) 
 +</code>
   * findRelatedSkinCluster python version (written based on original mel version)<code python>   * findRelatedSkinCluster python version (written based on original mel version)<code python>
 def findRelatedSkinCluster( skinObject ): def findRelatedSkinCluster( skinObject ):
  • graphic/python/maya.txt
  • Last modified: 2021/10/02 08:02
  • by ying