PDA

View Full Version : mia_material_x drag and drop fixed


djx
11-12-2009, 12: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

Autarkis
11-14-2009, 08:39 PM
Well that should be a time saver, thanks David.

daddyo
11-15-2009, 04:02 AM
looks appealing! Thank you for your steady contributions!

CGTalk Moderation
11-15-2009, 04: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.