View Full Version : One last question for you guys, Apply vertex color on selected object vertices, how ?

09 September 2006, 12:34 PM
I need a little script that apply a vertex color value of 128,128,128 to every vertex of the selected object.

i can't seems to find any script that do that and no help from 3dsMAX reference :sad:

I't probably easy, i don't want anything fancy, i jsute want to presse the script button and bam, vertex color is applied.

anyone know how ?

Thank you very very much !

09 September 2006, 10:04 AM
Try this
meshop.setVertColor $.mesh 0 #{1..$.mesh.numverts} (color 128 128 128)
To get the vertices having a certain color try this

meshop.getVertsByColor $.mesh (color 128 128 128) 0 0 0

hope this helps

09 September 2006, 12:58 PM
Thank you but i can't seems to get the first one to works and it's what i really need :/
i don't get any error from the listener but it's doing nothing.
do i need to select something ?

EDIT: Oh forget it it's working but i need to have a mesh in editable mesh ! that no problem Thank you very much !!!

CGTalk Moderation
09 September 2006, 12:58 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.