mcyrulik Posted December 22, 2010 Posted December 22, 2010 Is there a way in ScriptMaster to pass an unknown number of parameters or a variable number of parameters to a function? I was thinking of something along the lines of a file list, or a list of people, where there could be 1 file, or 20. I understand that in the function I would have to parse these, but I would rather have them come in as separate parameters than as a comma separated, return separated, or some other list as a single parameter. Thanks, ~Mark
dansmith65 Posted January 10, 2011 Posted January 10, 2011 you could use the methods discussed in this thread: http://fmforums.com/forum/topic/73061-universal-variable/page__p__345537__fromsearch__1#entry345537 Basically, rather than using a parameter, you would use a different function to set a variable in the Plug-in itself. If you setup the variable setting function properly, then you could have it append to the variable (via a list, map, or array).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now