February 21, 201313 yr 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
February 22, 201313 yr 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)
February 23, 201313 yr Author Great, does anyone have a link to Todd's article, I see lots of references but not the blog itself. C.
February 23, 201313 yr seems to have disappeared... see: http://fmforums.com/forum/topic/73061-universal-variable/
Create an account or sign in to comment