Extend VertexPaint modifier issues

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Display Modes
  04 April 2009
Extend VertexPaint modifier issues

Hi!

I'm trying to extend the VertexPaint modifier through maxscript, in order to add some behavior before and after a paint action. However, this is giving a lot of problems:
-If I replace the UI, I can't access the vertexpaint toolbox.
-If I don't replace the UI, the vertexpaint toolbox pops up, but I still can't paint....

Any ideas on how to solve this?


As some background info, what I'm trying to do is create a tool that allows me to paint a single component of the vertex color. So only paint the red component for example, leaving green and blue untouched.
 
  04 April 2009
uhh... err.. no - no idea

you could try using the node event system... painting triggers this node event sequence on in a while:

 -- @ N = timestamp, [n] N = object callback index, object animhandle id
 NE: #callbackBegin @ 56705420
 NE: #geometryChanged @ 56705420
 	[1] 23802
 NE: #topologyChanged @ 56705430
 	[1] 23802
 NE: #mappingChanged @ 56705440
 	[1] 23802
 NE: #extentionChannelChanged @ 56705450
 	[1] 23802
 NE: #renderPropertiesChanged @ 56705450
 	[1] 23802
 NE: #displayPropertiesChanged @ 56705460
 	[1] 23802
 NE: #subobjectSelectionChanged @ 56705470
 	[1] 23802
 NE: #callbackEnd @ 56705480
 


As well as a whole bunch of (redraw views callback)

 RV: #redrawViews @ 56707783
 


You could detect whether the change is..
- on the currently selected object
- whether the currently active modifier is a Vertex Paint modifier
- whether it is in paint / erase mode (bit trickier)
and restore the colors for the channel's you're not interested in if the above are all true.

This would only work alongside the standard Vertex Paint modifier, however; looks like any attempt at extending/replacing it breaks the painting bits and pieces.. which somewhat defeats the purpose.
 
  04 April 2009
Thanks for your suggestions.
I think it'll be easier to just let the user toggle "paint mode" though, and have that state change copy the appropriate data. It just would have been nice if it was possible with a modifier extending vertex paint...
 
  04 April 2009
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 12:53 PM.


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