Graphics

 View Only
  • 1.  Applying Materials

    Posted 02-03-2013 00:36
    Is it possible to have Xpression apply a certian material when you send a show.

    Currently when we "send a show" our program will fill in text fields but is it possible to pull up materials as well? Such as a down arrow or a specific picture?


  • 2.  RE: Applying Materials

    Posted 02-03-2013 09:02
    Yes you can...

    Publish your object with your material, and publish it. In Sequencer mode, where you fill in text field, you will be able to change material...

    #XPression


  • 3.  RE: Applying Materials

    Posted 02-03-2013 09:34
    I'm assuming your talking about the place where you can also apply video and stills to the material object but is there a way to have a specific material be assigned automatically? Such as or something similar

    #XPression


  • 4.  RE: Applying Materials

    Posted 02-03-2013 10:56
    Hi Trenton,

    There certainly is using the API, using scripting I'm not really sure but I think so too.

    A small example using the API

    dim Mat as xpMaterial

    dim Shader as xpBaseShader

    Engine.getMaterialByName "NameOfTheMaterialYou'vePutOnYourQuad", Mat

    Mat.getShaderByName "Texture", Shader

    Shader.setFileName "c:pathtoyourimage.png"

    Shader.reloadfile

    Now if you're doing something like stocks, you probably will have a script to compare the previous values to the current values. Depending on that result you could change the material.

    I think it should be possible to do the same using scripting, but I can test it right now.

    Best regards,

    Kenneth

    #XPression


  • 5.  RE: Applying Materials

    Posted 02-03-2013 18:28
    Thank you but with our build we are not able to script, so I have to find a way around that.

    #XPression


  • 6.  RE: Applying Materials

    Posted 02-03-2013 18:48
    Trenton,

    Sounds like you are trying to get a string value like "up" to also set a material automatically. I'm also assuming you are working on XPression Prime which does not support scripting. Without scripting this will be very difficult because there will be no way for you to tie a value to another object without scripting. One option you could try is using Datalinq to link your texture to a database of some sort. This will require that the database contains the file paths for the new textures. If you look at the properties of the texture you have applied to the material you created you will see the Datalinq field where you can point the texture to a data file of some sort.

    Also if this type of functionality is a requirement for your production Ross Video does allow customers with Prime to upgrade to Studio software without upgrading your hardware. Studio Software includes scripting which will allow you to build all sorts of logic based effects into your project.

    Andrew

    #XPression