iangugl.blogg.se

Maya mel print selection
Maya mel print selection









import maya.cmds as cmds def createCylinder(): if cmds.objExists('trunkCylinder'): lete('trunkCylinder') cmds.pol圜ylinder(axis(0,1,0), height1, name'trunkCylinder') lect(clearTrue) lect('trunkCylinder. You may also want to check out all available functions/classes of the module l, or try the search function. Some typical examples of using MEL commands include quickly creating objects, precisely moving objects, and working more efficiently with objects. You can vote up the ones you like or vote down the ones you dont like, and go to the original project or source file by following the links above each example. MEL includes a wide variety of commands for all aspects of using Maya. These examples are extracted from open source projects.

Maya mel print selection code#

ShadingNode -n ($sel+"_c"+$i) -asTexture -isColorManaged file Asterisk is used for selection of all the other faces in array, along with toggle flag, that inverted a selection for you. The following are 30 code examples of (). (like a EventListener) ScriptNode: contains a piece of mel code inside a node called ScriptNode (accessible in Expression Editor) it runs when a Maya Event happens, like file open/close, gui open/close. For Mel’s print and Maya’s command messages, we need to use CommandMessage.CommandOutputCallback in Maya API. stdout, the default standard output (terminal) to redirect Python’s print. ShadingNode -n ($sel+"_standard"+$i) -asShader standardSurface ĪssignCreatedShader "standardSurface" "" ($sel+"_standard"+$i) $sel ScriptJob: run a maya mel function when a condition happens like attribute change or thing selected. There are 3 types of messages: 1) msgs by Maya itself, 2) msgs from Mel’s print and 3) msgs from Python’s print. Open the Windows->General Editors->Script Editor. Write a separate procedure that queries the optionMenuGrp, and call it from within the main procedure: def getMySelectedOption (optionMenuGrp): getSel mc.optionMenuGrp (optionMenuName, q1, sl1) return getSel. The top pane shows the history of the command and their results. in your main procedure, create the commands. Each and every step is executed using MEL commands, to have a good understanding about Maya s scripting language. Go to Help->Maya Scripting Reference->MEL Command Reference This tutorial explains the rotation of multiple objects randomly each frame using Maya's powerful scripting language MEL. You can take advantage of MEL without learning programming.

maya mel print selection

Everything you can do using Maya’s graphical interface can be automated and extended using MEL.Familiarity with MEL can deepen your understanding of and expertise with Maya. 156 syllabus site index 3D artists past student work DMA Maya’s user interface is created using MEL, and MEL provides an easy way to extend the functionality of Maya.









Maya mel print selection