ScriptSpot home

Forum topic · General Scripting

Script for VRay light icon text turn on/off toggle

By Sketchup Master · 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)
obaida

$.on !

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

Reply to obaida
Sketchup Master

Thanks . . .

Hi Obaida,

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