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 