ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
I know that we can use a .net button and set its foreColor to a disired color.
But my problem is that the foreColor property is a System.Drawing.Color and we just can set the color to one of the following preset colors.
Comments
Thank you !
Thank you !
EPILEPSY WARNING The
EPILEPSY WARNING
The following rollout uses crazy colors!
rollout rlTest "" (
dotnetcontrol button "Button" width:100 height:30 pos:[0,0]
on rlTest open do (
button.text = "Test"
randomColor = random white black
button.foreColor = button.foreColor.fromArgb randomColor.r randomColor.g randomColor.b
randomColor = random white black
button.backColor = button.foreColor.fromArgb randomColor.r randomColor.g randomColor.b
)
)
createDialog rlTest 100 30
I know that we can use a
I know that we can use a .net button and set its foreColor to a disired color.
But my problem is that the foreColor property is a System.Drawing.Color and we just can set the color to one of the following preset colors.
.A : , read-only
.AliceBlue : , read-only, static
.AntiqueWhite : , read-only, static
.Aqua : , read-only, static
.Aquamarine : , read-only, static
.Azure : , read-only, static
.B : , read-only
.Beige : , read-only, static
.Bisque : , read-only, static
.Black : , read-only, static
.BlanchedAlmond : , read-only, static
.Blue : , read-only, static
.BlueViolet : , read-only, static
.Brown : , read-only, static
.BurlyWood : , read-only, static
... ...
... ...
And you can't set it to a random color like color 50 50 50.
So how can we set the color to any color we want?
i think thats only possible
i think thats only possible with dotnet