PDA

View Full Version : SelectByName failing to distinguish between case sensitive items



AbstractTech3D
10-22-2012, 04:21 PM
Hello

I have a script whereby I'm attempting to select a light named 'LASER A' - using SelectByName("LASER A").

However, the unwanted result of running the script in the scene is the selection of a null named 'laser attenuation'.

It seems that case sensitivity of the string is not being respected, nor the finality of the string. Both to my surprise.

Can anyone comment, please?

Thanks!

xchrisx
10-22-2012, 04:29 PM
I believe you want to use SelectItem("LASER A") instead of select by name because it will only select an item with the exact string in the name.


@warnings
@version 2.2
@script generic

generic
{
SelectItem("LASER A");
}

AbstractTech3D
10-22-2012, 04:55 PM
right, great.

Thanks once again!