[Closed] deleting a number of omni lights
I have a script and part of it makes a set of boxxes named Audioblock1 up to Audioblock128,to be able to [size=2]delete the last set of boxxes be it 1 or 100 boxxes I have the line [/size]
[size=2][/size]
[size=2][color=yellow]if[/color] dob.checked == true then ( delete $AudioBlock* ) This works fine
[size=2][/size]
[size=2]So the problem is my script does the same thing with a set of omni Lights named[/size]
Audiolight1 up to Audiolight128 so to delete the lights I’m using this line of code
[size=2][size=1][color=#fffffe]
[color=#0000ff][color=yellow]if dellight.checked == true then[size=1][size=2] ( delete $Audiolight* )
[/size][/color][/color][/size]But its not working am I missing something here ?
Could someone here show me the right way to do this
Thanks for reading
[/color][/size]
[/size][/size]
its okthe code works fine I just had it in the wrong place so it was never called .
just having one of them days I think . sorry about that