Graphics

 View Only
  • 1.  Hide/show group

    Posted 10-26-2020 19:51

    Hi
    I have group in a scene which contain quad and 3 text field.
    Also i have json api which sstructure look like this

    [
    {
    "data": "6"
    }
    ]

    this json api change value depend on incoming data, the value can be 5 or 10 or 15

    in my scene i have 20 group

    if my json data is 3 i want to show 3 group in my scene starting from group 1 and hide other group.
    each group has its own data

    how can i do this in XPression



  • 2.  RE: Hide/show group

    Posted 10-27-2020 12:55

    A visual logic that feeds the datalinq'd text into a few "greater than/eq" block and the output of those blocks feed the Visible property of the group.  Like this example, but use Group's instead of Quads.


    #XPression