Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete SelectChildConstraintNode
#選択しているノードの子供のうち、指定のタイプのノード(SampleはConstraint)を削除する
import pymel.core as pm
select = pm.ls(sl=True,fl=True)
deleteType = "constraint"
for node in select:
delNode = node.listRelatives(c=True,ad=True,type=deleteType)
pm.delete(delNode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment