ScriptSpot

Forum topic · General Scripting

Script for VRay light icon text turn on/off toggle

By sketchupmaster · 2021-11-18

Description

Hello,

I am looking a script of VRay light icon text turn on/off toggle.

anyone have script?

Actually i am done something like



(

On Execute Do

(

$.icon_text = $.on = not $.on

)

)

It works but it turn on & off light as well as icon text
i want only icon text turn on & off

anyone can update the code.

Thanks

Comments (2)

$.on !

obaida · 2021-11-20

$.on will turn the light on
just use this
$.icon_text = not $.icon_text

Thanks . . .

sketchupmaster · 2021-11-25

Hi Obaida,

Yes now it's working like charm.
THANK YOU . . .