(
on execute do
(
for object in selection do
if (classOf object.material == Standard) then
(
if object.material.selfIllumAmount != 100 then
(
object.material.showInViewport = on
object.material.selfIllumAmount = 100
)
Else
(
object.material.showInViewport = on
object.material.selfIllumAmount = 0
)
)
else if (classOf object.material == Multimaterial) then
(
for b = 1 to b = object.material.numsubs do
(
if (classOf object.material.materialList[b] == Standard) then
(
object.material.showInViewport = on
object.material.selfIllumAmount = 100
)
)
)
)
)
Comments
Budi G Great thanks!!
it works
...
Try this one. If not works then put fn inside execute event
bga
Thanx barigazy
And How to make this for button is pressed when mtl.selfIllumAmount == 100
And If mtl.selfIllumAmount != 100 then button is not pressed.
For example as well as here but i not сan make this script as well as here
...
are you want to toggle VertexTicks properties ei. when VertexTicks == on then macro button is checked and if VertexTicks == off then uncheck button?
bga
I've check your script
I've check your script Nik,
Don't forget to write ".materialList[b]" for Multimaterial
The result of the correction :