PDA

View Full Version : Automatic connections in the maya api?


mutiny33
03-04-2008, 01:17 AM
Hello,

I was trying to add a feature to a custom node attribute through the maya api that is similar to the default shader.

For example if you create a lambert shader and a checkerboard texture seperately, you can automatically connect them by just typing checker1 in the Bump Mapping field in the lambert shader attribute editor. This also attribute also updates when the connection is made through the hypergraph and the connection editor.

I'm planning to have a custom node that uses a texture that you can replace through any maya interface.

Anyone know of the api function that does this?

Thanks,

Daniel

Robert Bateman
03-04-2008, 09:34 PM
MPxDragAndDropBehaviour

mutiny33
03-04-2008, 11:49 PM
fantastic... many thanks.

CGTalk Moderation
03-04-2008, 11:49 PM
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.