Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
graphic:python:maya [2021/08/22 19:43] – ying | graphic:python:maya [2021/10/02 08:02] (current) – [selection related] ying | ||
---|---|---|---|
Line 2400: | Line 2400: | ||
allgeo.append(each) | allgeo.append(each) | ||
# | # | ||
+ | </ | ||
+ | * selected attribute in channel box<code python> | ||
+ | selected_attr_list = cmds.channelBox(" | ||
</ | </ | ||
Line 2419: | Line 2422: | ||
===== 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 ): |