Charles Delfs Posted February 21, 2013 Posted February 21, 2013 Since I'm not a Java guru yet, here's a question, Can and how do I keep variables and states etc. in my java (groovy) between FMP scripts etc. Say I want to have an entire program running and that would communicate with FMP via script calls etc, how would I do that? or ... its the environment totally destroyed at the end of the current script master call once control is passed back to FMP? Charles
john renfrew Posted February 22, 2013 Posted February 22, 2013 AFAIK the JVM is created on opening FMP with ScriptMAster installed and destroyed on exit Any Groovy 'variables' you create during the script are available using SMGetVariable("var") until you run another function when they are destroyed - so you will need to set some FM variables for any kind of persistence. BUT because the JVM is still alive you can put things into an Expando to store them (see posts from Todd Geist on his site on this)
Charles Delfs Posted February 23, 2013 Author Posted February 23, 2013 Great, does anyone have a link to Todd's article, I see lots of references but not the blog itself. C.
john renfrew Posted February 23, 2013 Posted February 23, 2013 seems to have disappeared... see: http://fmforums.com/forum/topic/73061-universal-variable/
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