Message 1 of 2
Not applicable
12-25-2012
03:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
What I'm trying to do is have a colour picker change the first colour of a falloff map, and then have the second colour of the falloff map be a slightly darker version of the colour.
colorpicker theColor "Colour" color: modal:false pos:
on theColor changed new_col do
(
meditMaterials.texmap_diffuse.color1 = new_col
meditMaterials.texmap_diffuse.color2 = new_col.value - 50
)
Now from what I've been reading up from the maxscript help is that colors are 3point values. However the color component properties such as H.S.V are floats. So what I was trying to do here is decrease the value by 50, yet it comes back with a "Unable to convert to Point 3" error...
What am I misunderstanding?
Thanks
And Merry Christmas!
colorpicker theColor "Colour" color: modal:false pos:
on theColor changed new_col do
(
meditMaterials.texmap_diffuse.color1 = new_col
meditMaterials.texmap_diffuse.color2 = new_col.value - 50
)
Now from what I've been reading up from the maxscript help is that colors are 3point values. However the color component properties such as H.S.V are floats. So what I was trying to do here is decrease the value by 50, yet it comes back with a "Unable to convert to Point 3" error...
What am I misunderstanding?
Thanks
And Merry Christmas!
Solved! Go to Solution.
