Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revisionBoth sides next revision | ||
graphic:python:maya [2021/08/22 19:43] – ying | graphic: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+' | ||
+ | if links is None: | ||
+ | links = [] | ||
+ | print(links) | ||
+ | </ | ||
* findRelatedSkinCluster python version (written based on original mel version)< | * findRelatedSkinCluster python version (written based on original mel version)< | ||
def findRelatedSkinCluster( skinObject ): | def findRelatedSkinCluster( skinObject ): |