Page 1 of 1

how to control a module from another module ?

Posted: Sun Jul 19, 2009 11:07 am
by FlyingLobster
Hey guys,

I am building a module which would be like a master control panel for all the functions I am using I the various modules.
The goal whould be that all buttons in this master module would be linked to buttons of other modules and controlling them.

Is there any way to link a button on a module with one of another module ?
If not, is there any way to interact with a module from another one ? (passing values, etc...)
Only constraint is that I don't want to have to edit the code of the module to be controlled (if it's the only way, why not).

Thank you



Please enjoy the two modules I shared in the library... you can find them under FlyingLobster...

Posted: Sun Jul 19, 2009 12:34 pm
by tb_101
the only way, i found out is checking a shared dictionary
periodically. to see how it works, have a look at the bpm
module from garagecube.

its realy not very comfortable ...

here the info from the doc:

getshareddictionary
This function returns the global shared dictionary. This dictionary is useful to allow the modules to
communicate together and share values. By default, all the modules are executed in completely separated
spaces to avoid any conflict of variables and functionalities. However there is a global dictionary that any
module can use to read or to store values. This function can be used to get this dictionary.