Message 1 of 4
Run a python script automatically when a specific scene open, and ONLY then

Not applicable
03-13-2018
07:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!,
I have a script that reads 2 float numbers from a csv file and place this numbers in a floatConstant shader in hypershade. I want every time that a specific scene open (this scene have the hypershade with the shaders embedded) the script running too.
First of all I tried to put the script as "userSetup.py" in the Maya script folder and with an If- statement check if the "right" scene open. But nothing happend.
Do anybody have ever face this problem??
Thanks in advance!
Dimitris