I have a simple(?) question for your.
I have create a little script that allows to assign a standard material in an object:
---------------------------------------------------------------------------------------
mat_obj = StandardMaterial()-- create standard material
rollout testcolor "Test Color"
(
colorPicker col "Bmc" color:(color 81 81 81)--create color pick
button ins "Assign Color to selection" --create button
on col changed new_col do mat_obj.diffuse = new_col --create new diffuse color for the StandardMarterial
on ins pressed do
(
$.material = mat_obj --- assign the color to the object
)
)
createdialog testcolor
------------------------------------------------------------------------------------
Now, if I have one object in the scene no problem.
With two or more object (Sphere,Box ecc.), when I assign the color of the first object is updated continuously...To understand the problem better evaluate the script above with two object.
My question is this:
How do I assign different colors in the different selected object without updated the color assigned and without closed the script rollout?
The workflow must be:
Select Object
Assign color with color picker to the object
Select second object
Assign new color to the second object
ans so..
Any Help?
Thanks in advance Michele
By Michele71 · 2010-02-01
Arindam · 2011-06-01
br0t · 2011-06-01
Anubis · 2010-02-01
Marco Brunetta · 2010-02-01
Budi G · 2010-02-01