1. #1
    Senior Member Follow User Gallery
    Join Date
    Feb 2007
    Location
    Wellington, NZ
    Posts
    157

    Default Information from the Layer List

    Hi,
    what sort of Information can I get from the LayerList of a Tool ? I mean how would I evaluate if a certain Layer exists or not ?
    Can I somehow output the LayerNames into a Variable and query the Variable for a string ?

    [IExists,Tool:Layers:"LayerName"] doesn't seem to work
    Last edited by campi; 08-24-12 at 10:00 PM.
    Jens Kafitz
    Sr. Texture Artist, Weta Digital


  2. #2
    Senior Member Follow User Gallery
    Join Date
    Feb 2007
    Location
    Wellington, NZ
    Posts
    157

    Default

    Ah, weird. Looks like the it gets tripped up with short LayerNames like disp. With longer Layernames it works - sorted.
    Jens Kafitz
    Sr. Texture Artist, Weta Digital


  3. #3
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    8,748

    Default

    Be careful with [IExists] and layers. I think you'll find it will only return the correct value if the layer is visible in the list - in other words, if you have more than 8 layers and the layer you want is hidden, then it won't 'exist'.

    I've not seen any problem with short layer names.

  4. #4
    Senior Member Follow User Gallery
    Join Date
    Feb 2007
    Location
    Wellington, NZ
    Posts
    157

    Default

    Ah, maybe that was the culprit then. I had a long list. I'll just try and let the script scroll through the list and rerun the check a few times, I think I saw someone else was using this method to check with Layer was in Record mode.
    Jens Kafitz
    Sr. Texture Artist, Weta Digital


Posting Permissions

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