I´ve tried to get and set the value of a GlobalVariable from code, but all that I tried seems useless.
setvarnum(Model.find("MODEL:/Tools/GlobalVariables/testDLL"), "Data", 8); double c = getvarnum(Model.find("MODEL:/Tools/GlobalVariables/testDLL"), "Data"); print(c);
and also I tried
setvarnum(Model.find("MODEL:/Tools/GlobalVariables"), "testDLL", 8); double c = getvarnum(Model.find("MODEL:/Tools/GlobalVariables"), "testDLL"); print(c);
I know that a variable could be setted in a easy way just assignt the new value like this
testDLL=20
But that does not work for me and the type of project that I am working on. I need to get and set the variables from external dll (c++ dll - dllMaker)
NOTE.- The above code for set and get works for objects, but no with GlobalVariables