一半君的总结纸

听话只听一半君

Interaction between Wing and Maya

 http://mayamel.tiddlyspot.com

Wing has the ability to interact with Maya in four different ways. Each has it’s own setup, independent from another. For clarity, here they are listed below:

  1. Send Python & mel commands from Wing to Maya, bypassing the Script Editor. Meaning, replace the Script Editor with Wing. See Docs here
    I use this on a daily basis, and the main reason I use Wing.
  2. Remote debug Python code executed in Maya with Wing. This lets you use Wing’s debugger to step through Python code in an active Maya session. See Docs here
    This has been extremely valuable to track down bugs in large modules.
  3. Execute a standalone version of Maya inside Wing’s Python shell. See Docs here
    Note, I’ve yet to have a need for this, as neat as it seems.
  4. Get source analysis \ auto-completion of the ‘maya’ Python package working in Wing. This allows you when authoring code like this in Wing:
    import maya.cmds as mc
    import maya.OpenMaya as om
    
    1. To have Wing auto-complete the typed in module\class\function names.
    2. This is incredibly handy. See docs here.

When you are setting these up for the first time, do each separately before moving on to the next, so as not to confuse yourself.

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: