Graphics

 View Only
  • 1.  Dynamic Materials slow to update

    Posted 06-23-2023 14:41

    Hi all-

    I'm working on a graphic for team standings in a conference. The team names & records pull via Datalinq from an Excel file and are working as expected. What I can't get to work is getting the team logos to change with them via Dynamic Material.

    Each team name is a text object in my scene, so I started by trying to use the @TextObject@ in Dynamic Material to insert that team name into my file path, thereby pointing to the correct team's folder to pull the logo. When I take the scene online, all of the Datalinq text updates correctly, but the logos do not change or update until I click a second time on that scene in the sequencer, and then they all correctly appear - but obviously this is after the scene has been online with incorrect logos.

    I went back and watched more tutorial videos on Dynamic Material and thought perhaps the TextObject was the issue, so I tested using a %datalinqkey% with one team instead - still pulling team name via Datalinq but putting an OnSetText script on that text object to create a Datalinq Key. When I took the scene online, it worked - the one line using a datalinq key pulled the correct team logo right away.

    However, when I went back and changed the remaining lines over and tested it... same issue as before. None of the lines, including the one that had worked in the test, update logos until I click on it a second time in the sequencer.

    I'm at a loss at this point - appreciate any suggestions!

    Rob



    ------------------------------
    Rob Coons
    Director, StudentU
    Big Ten Network
    ------------------------------


  • 2.  RE: Dynamic Materials slow to update

    Posted 06-24-2023 01:31
      |   view attached

    Rob,

    You should be able to use your @textobject@ macro in a dynamic material path, you just need to force the scene to update the dynamic material after the Datalinq value is set. For any of your Datalinq'ed text objects, check the "Requery scene Datalinqs on data change" checkbox in the Datalinq options. And if for some reason that doesn't work, you could also put a simple scene.refreshdynamicmaterials command on the OnSetText event of the text objects being fed by external data. Either method should allow the Dynamic Material path to evaluate after the Datalinq value sets the text  



    ------------------------------
    Jeff Mayer
    Ross Video
    ------------------------------



  • 3.  RE: Dynamic Materials slow to update

    Posted 06-24-2023 10:19

    Hi Jeff!

    Thanks for the ideas. This is getting me closer, but still not completely there. I no longer need to click a second time once the scene is online to have it refresh, but it is still showing the old data for 1-2 seconds when the scene first goes online before it switches it over to the correct data. Tried both your suggestions, same result. I even see the correct data in the Preview window before taking the scene online, but it still comes through with the old data first.

    Rob




  • 4.  RE: Dynamic Materials slow to update

    Posted 06-24-2023 13:05

    Be sure not to have requery on every object, only the ones that need it which is only the objects being used for macros, don't turn it on on any that don't as it will slow things down. 

    Be sure to clear the text and materials from your template that are going to be fed from data. 

    You could try onOnline or onBeforeOnline having;

    self.RefreshDatalinqs
    self.RefreshDynamicMaterials 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 5.  RE: Dynamic Materials slow to update

    Posted 06-26-2023 13:01

    That did the trick. Thanks for the help!