Results 1 to 3 of 3

Thread: AddToSelection

  1. #1

    AddToSelection

    Is AddToSelection broken when using the string name of an item? It's not working for me in the attached.

    AddToSelection(itemname/itemid)
    Adds an item either by name or id to the list of currently selected objects.

    Giving it an item ID works.
    Attached Files Attached Files
    My opinions and comments do not represent those of my employer.
    www.ernestpchan.com
    www.zazzle.com/gopuggo

  2. #2
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,884
    In LWSDK
    AddToSelection takes only LWItemID as argument,
    and no item by name.
    See LWSDK/html/commands/layout.html#selection

    If I open Utilities > Command Input/Command History
    and enter AddToSelection [name]
    nothing happens.

    What Python uses is in 99.99% above command.

  3. #3
    Quote Originally Posted by Sensei View Post
    In LWSDK
    AddToSelection takes only LWItemID as argument,
    and no item by name.
    See LWSDK/html/commands/layout.html#selection

    If I open Utilities > Command Input/Command History
    and enter AddToSelection [name]
    nothing happens.

    What Python uses is in 99.99% above command.
    Ok..so the lscript docs are wrong then. Thanks for the info Sensei.
    My opinions and comments do not represent those of my employer.
    www.ernestpchan.com
    www.zazzle.com/gopuggo

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
  •