function()
You can define functions inside of osl using the function function.
// myFunc = function(params, code)
myFunc = function("v", "return v + 10")
log myFunc(10)
// 20
Last updated
Was this helpful?
You can define functions inside of osl using the function function.
// myFunc = function(params, code)
myFunc = function("v", "return v + 10")
log myFunc(10)
// 20
Last updated
Was this helpful?