PDA

View Full Version : AssignVertexColors.ApplyNodes vs. Utility panel apply vertex colors


Bozar
11-23-2006, 10:23 PM
I am trying to write a script which does a radiosity calculation and then assigns the vertex colors to the selected mesh.

After to doing the radiosity calculation, if I use the utility "Assign vertex colors" everything works fine. However if I try to assign the vertex colors via maxscript I have problems.


v_paint = vertexpaint()
v_paint.useradiosity = true
v_paint.lightingModel = 0
v_paint.radiosityOption =1
addmodifier $ v_paint

--do the lighting call here

AssignVertexColors.ApplyNodes $ vertexpaint:v_paint



When I do it through the above maxscript it looks like the AssignVertexColors worked but with the radiosity turned off.

Does anyone have any suggestions as to what i might be doing wrong?

Thanks in advance!

CGTalk Moderation
11-23-2006, 10:23 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.