Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Maya でこれを整理しようとしばらくしています。たとえば、選択されていないライトを非表示にできるスクリプトが必要なので、頭に浮かぶ (そして機能しない) 唯一の方法は次のとおりです。
lt=cmds.ls(lt=True,sl=False) cmds.hide(lt)
選択を伴う引数 False が機能しないことがわかったので、他の方法について調べたいと思います...ありがとう
@goncalops の回答は、ライトシェイプを選択しても機能しますが、その変換は選択できません。
試す:
lights = cmds.ls(type = 'light') or [] lights = set(cmds.listRelatives(*lights, p=True) or []) for item in lights.difference(set(cmds.ls(sl=True))): cmds.hide(item)