Results 1 to 3 of 3

Thread: SelectByName failing to distinguish between case sensitive items

  1. #1

    SelectByName failing to distinguish between case sensitive items

    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!

  2. #2
    automator of tasks xchrisx's Avatar
    Join Date
    Jul 2003
    Location
    Nevada
    Posts
    593
    Blog Entries
    6
    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.

    Code:
    @warnings
    @version 2.2
    @script generic
    
    generic
    {
    	SelectItem("LASER A");
    }
    My Lscript Collection | LinkedIn
    3D Generalist IGT

  3. #3
    right, great.

    Thanks once again!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •