Local Scoping
About Variables
In osl all variables are global scope and to use locally scoped variables you must use the keyword this
Where can i use this
?
this
?You can use this
inside of the following scopes
How does this
work?
this
work?The this
variable is a json object that can be modified by setting keys on it, as shown below
this
has a different value depending on the scope of when you access it
Example script
Last updated