Graphics

 View Only
  • 1.  Script question

    Posted 08-08-2019 17:39

    A few years ago, before I ever started using XPression, someone from Ross came into the studio in which I now do all of my XPression work and created a 'set-up' page.  Since the vast majority of our work is team sport specific, we use this setup page in all of our projects.  It's basically a way to set globally the logos and team colors for 'Home' and 'Away' from a single location and have it populate every scene in the project.

    Now - I do not know how to right a script from scratch, but I can usually look at one and get the gist well enough to modify it for a different purpose, and that brings me around to my question.

    The package I am working on now needs the ability to chose ANY team in a number of templates.  So, I have taken this set-up script and modified it to do exactly that, and t works well.  However, an issue arose when I realized that entering a value in one scene was overriding values previously entered into other scenes.  So, I made a unique set of materials for each scene which could draw upon the same set of logos and swatches.  

    This is fine, but I feel like there is a better way, a way to keep the script localized, so I am posting a screenshot of it below to get thoughts. I feel like if I were to change all the instances of "self.project" to "self.scene" it might just do the trick, but maybe there is more to it?  

    I'd love some insight into this, thanks in advance.

     

     - Willie



  • 2.  RE: Script question

    Posted 08-14-2019 13:48

    This sounds sort of similar to a scenario we've encountered with some of our sports shows here. Depending on the content required in the scene and the required pre-production, this is where we usually employ an XML or JSON file with team data in it since that information will remain unchanged throughout a season (or several).

    Depending on where these logos and colors need to go we set up user input lists or fields for tricodes as datalinq keys that pull  in the relevant team info (since there could be other info that may be relevant in other scenes like city, RGB colors, team name, salary cap, avg attendence, etc.). Within there would be an absolute filepath to the directory where logos are grabbed that way they can be managed there rather than the material manager.

    For your script, when you mean it's changing for all scenes do you mean that the preview is changing the logo in there based on say what the last scene taken online was?  So if you have 2 scenes, Scene1 has two tricodes of NYM and NYY it will show those logos when brought online. But if your second scene has SF and CIN in it, and you bring that online, Scene1 is showing those logos in preview? You may need to add that script of yours to the OnPreviewRender to reflect the scene's values.

    Not sure if that helps?


    #XPression