Graphics

 View Only
  • 1.  script for layer visibility

    Posted 11-23-2016 19:54

    hi all,
    can someone help me with a script

    i'm trying to turn on/off visibility on certain rows based on a hidden text input....1 for 1 row (row 2 and 3 hidden), 2 for 2 rows (row 3 hidden), 3 for 3 rows

    i'm not much of a scrpting guy

    i have 3 group containers, called row1, row2 and row3

    and a text object called textSelector

    the script is on the textSelector layer

    any help is appreicated



    ----------------------

    dim line1, line2, line3 as xpBaseObject
    dim word as xpTextObject


    self.GetObjectByName("row1", line1)
    self.GetObjectByName("row2", line2)
    self.GetObjectByName("row3", line3)
    self.GetObjectByName("textSelector", word)

    if word.text = "1" then
    line1.visible = true
    line2.visible = false
    line3.visible = false

    end if

    if word.text = "2" then
    line1.visible = true
    line2.visible = true
    line3.visible = false

    end if

    if word.text = "3" then
    line1.visible = true
    line2.visible = true
    line3.visible = true

    end if


  • 2.  RE: script for layer visibility

    Posted 11-24-2016 17:05
    Here's a scene using Visual Logic that will do the same and there's also another in here that will give you similar results but you don't need the selector.
    #XPression


  • 3.  RE: script for layer visibility

    Posted 11-24-2016 17:31
    thank you redmile
    #XPression