View Full Version : mia_material_x drag and drop fixed

11 November 2009, 01:51 PM
I often see people asking why they can't just connect mia_material_x or mia_material_x_passes to other nodes (eg mib_color_mix or mix8layers etc). Actually they can, but drag and drop does not work the same way as it does with other materials and the connection editor opens which can be confusing for people not accustomed it.

I figured out a way to make mia_material_x and mia_material_x_passes behave like the other materials when dragged and dropped. It involves a modification to a script called connectNodeToAttrOverride.mel which contains the following encouraging suggestion

//This procedure is provided as a hook for customers to allow
//you to redefine the behaviour of drag and drop.

So I added a few lines :)

Just drop the mel in your local scripts folder and restart maya.

-- David

11 November 2009, 09:39 PM
Well that should be a time saver, thanks David.

11 November 2009, 05:02 AM
looks appealing! Thank you for your steady contributions!

CGTalk Moderation
11 November 2009, 05:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.