maya : pymelで選択している階層すべてのコンストレイント取得

import pymel.core as pm

# 選択している階層すべてのコンストレイント取得
pm.listRelatives(pm.selected(),ad=1,typ="constraint")

コメント