Facility Control

 View Only
Expand all | Collapse all

Custom Panel: Having a dropdown menu to change materials of a quad object in Xpression

  • 1.  Custom Panel: Having a dropdown menu to change materials of a quad object in Xpression

    Posted 08-28-2020 14:00
    Hi!
     
    I was trying to find a how to change material in Xpression via Datalinq. Since you can set the Material Source to Datalinq.
    We were doing this manually before with template links in the sequenzer and some human mistakes appeared in shows.
     
    I got Datalinq and Rosstalk all setup and simple Buttons like "Take Item" are working fine, but thats all i can do with my beginner knowledge.
    I would like to know, how to create something like a dropdown menu to change the texture of a quad.
    Or to set specific Quad objects visible or invisible.
     
    If there is already a sample panel, where i can just copy paste the data and look into it myself, i would be grateful to get an example of those.


  • 2.  RE: Custom Panel: Having a dropdown menu to change materials of a quad object in Xpression

    Posted 08-28-2020 18:27

    Here is an example I built (source code below). The panel streams the parameters to datalinq over port 2222.

    The panel below has a parameter with a drop down list with a choice of Red or Blue (Red and Blue refer to the names of my materials in XPression).

     

    XPression I built a quad. On the quad I moved over to the datlinq tab and set the datalinq to the value of my parameter.

    You have the choice of either doing this to the take item in the sequencer or to the scene itself.

     

    Just make sure your choices in the drop down match the material names in your project.

     

    DB SOURCE:

    <abs contexttype="opengear" dblinqport="2222" id="_top" keepalive="false">
    <meta>
    <params>
    <param access="1" constrainttype="STRING_CHOICE" maxlength="0" name="Color drop" oid="Color-drop" type="STRING" value="Blue" widget="combo">
    <constraint>Red</constraint>
    <constraint>Blue</constraint>
    </param>
    </params>
    </meta>
    <param expand="true" height="93" left="314" oid="Color-drop" showlabel="false" top="190" width="624"/>
    </abs>


    #DashBoard