Troubleshooting

how to pass variables in custom script? customScript(var)

Started by pestopan on .

Sign in or create an account to join the conversation.

3 posts

Topic starter
Hi,
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
Hi
Looks 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