Skip to content

Instantly share code, notes, and snippets.

@teionn
Created December 2, 2018 11:15
Show Gist options
  • Save teionn/9a96a28663cbc3fcb046aa20d503d330 to your computer and use it in GitHub Desktop.
Save teionn/9a96a28663cbc3fcb046aa20d503d330 to your computer and use it in GitHub Desktop.
cmds.ls(sl=False,selection=True)
#sl selection どちらかが True だったらフラグがオンになる
#anyを使用している?
#any([False,True])
cmds.ls(typ="mesh",type=["transform","camera"])
#typ type どちらも処理される。
#文字列,リストの両方が使える。
#文字列を一旦リストに格納してから処理を行っているのだと思う。
cmds.polySmooth(divisions=2,dv=0)
#数値で値を入力するものはショートフラグが優先される。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment