Skip to content

Instantly share code, notes, and snippets.

@redglasses67
Created March 4, 2020 17:44
Show Gist options
  • Save redglasses67/41f03c216347e5359993b37604370605 to your computer and use it in GitHub Desktop.
Save redglasses67/41f03c216347e5359993b37604370605 to your computer and use it in GitHub Desktop.
melコマンドを実行する
import maya.api.OpenMaya as om2
mod = om2.MDGModifier()
mod.commandToExecute("polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1;")
mod.doIt()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment