Below is the screenshot of the layer structure I have:
And I’d like a certain variable called “current_artic”, residing in Global Script, to relay its value to the script modules called Layer1 and Layer2. I decided to use a Parameter for this purpose called also “current_artic”
Global Script is like:
defineParameter(“current_artic”,“”,1,1,34,1)
this:setParameter(“current_artic”,2)
print(this:getParameter(“current_artic”))
Both Layer1 and Layer2 have the following script:
print(this.program:getParameter(“current_artic”))
and this code can’t get correctly the Parameter called current_artic, returing nil in the print line.
- Is my method good at all? maybe there is an easier one?
- Why the addressing this.program:getParameter(“current_artic”) returns nil? To my understanding this.program must return Global Script module as an object of the program, no?
