Maya: Adding second color per vertex

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  02 February 2004
Maya: Adding second color per vertex

Hi all,

The artists at work wish to be able to modify their prelit scenes by tweaking vertex colors. However, if they move a light or re-light the scene for whatever reason, they would like the color tweaks to remain intact.

To do this, I'd like to be able to store a second color per vertex (or even a "tweak" delta value). Although I can use the Maya UI to add a vector attribute per vertex, and can do a similar thing through script, I'd ideally like to do this in a plugin. I also need some way of altering the rendered vertex color based on this extra tweak color.

Well, I hope that makes sense to someone, and thanks for any ideas you can chuck this way.

  02 February 2004
Look up blind data and dynamic attributes in the developer giude, and there's more than one source code example in the dev kit. Basically the plug-in version of what you can do with MEL AFAIK

You can have your characters photoreal, fast or cheap. Pick two.
  02 February 2004

Thanks for the reply. I've had a look through the dynamic attribute and blind data documentation, and played around with the blind*DataCmd examples. I can happily add a new attribute per node, but am having trouble actually adding the data per vertex. Is there something obvious I'm missing (normally there is)?

  02 February 2004
Well for per-vertex stuff I guess you just add an array attribute with the same number of elements as vertices...

You can have your characters photoreal, fast or cheap. Pick two.
  01 January 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 09:04 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.