Making Arrays Or Objects
Last updated
Was this helpful?
Last updated
Was this helpful?
If you want a json editor, I suggest or
Arrays in OSL are 1-indexed collections that can hold any type of value.
Objects are collections of key-value pairs that can include computed values and methods.
Arrays are 1-indexed (first element is at index 1)
Objects can use self
to reference their own properties
Both arrays and objects can contain any OSL data type
Values can be computed when creating arrays or objects
Methods can be included in objects using def() ->