Troubleshooting
how to pass variables in custom script? customScript(var)
Started by pestopan on .
Sign in or create an account to join the conversation.
Hi,
how can I pass variables to a custom scripts, like the internal functions?
Peter
how can I pass variables to a custom scripts, like the internal functions?
-- Start: faderScript()--
// On expression: x = any
decl variableToPass = x;
// Call script in a different place of the tree, here: 'Project/Interface/Scripts'
Scripts.myCustomScript(variableToPass);
-- End: faderScript()--
Cheers,Peter
Subject: Re: how to pass variables in custom script? customScript(var
HiLooks like it should work assuming that Scripts is a Container
And that faderScript is in a Fader so it can get its x value . . .
Check for typos in your actual script perhaps
MM
Subject: Re: how to pass variables in custom script? customScript(var
Thanks Macciza!!!It works as expected.
typo.