I had asked this question earlier in a different form but did not receive a response so I am trying a different approach using a greatly simplified flowgraph to illustrate my point.
I have attached the three pertinent files. Test is an OOT module. I want to be able to trigger a callback set_IGain (which works) and write a value to the I_Gain GUI Entry (which doesn’t work). I have tried various imports, setting of variables and any other scheme that I could think of. I have not included any specific piece of code in the callback. This seems like such a simple thing to do but nothing works. I get various errors or nothing is written when I eliminate the errors. I must be missing a basic point. Please help me get over this hump. Jim -- This email has been checked for viruses by AVG. https://www.avg.com
test.py
Description: Binary data
<?xml version="1.0"?> <block> <name>test</name> <key>test_sr_test</key> <category>test_sr</category> <import>import test_sr</import> <make>test_sr.test($I_Gain, $Change_I_Gain)</make> <callback>set_IGain($Change_I_Gain)</callback> <!-- Make one 'param' node for every Parameter you want settable from the GUI. Sub-nodes: * name * key (makes the value accessible as $keyname, e.g. in the make node) * type --> <param> <name>I_Gain</name> <key>I_Gain</key> <value>0</value> <type>raw</type> </param> <param> <name>Change_I_Gain</name> <key>Change_I_Gain</key> <value>0</value> <type>raw</type> </param> </block>