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

Discuss problems and solutions.
Post Reply
pestopan
Newbie
Posts: 2
Joined: 07 Oct 2013 09:05

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

Post by pestopan »

Hi,
how can I pass variables to a custom scripts, like the internal functions?

Code: Select all

-- 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
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: how to pass variables in custom script? customScript(var

Post by Macciza »

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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
pestopan
Newbie
Posts: 2
Joined: 07 Oct 2013 09:05

Re: how to pass variables in custom script? customScript(var

Post by pestopan »

Thanks Macciza!!!
It works as expected.
typo.
Post Reply