While working on a model's interior.xml I noticed that a potentiometer would be stuck at 55% no matter what I would change in my code.
In the end I found out that two separate <Component> entities had the same potentiometer defined. Only one entity had a potentiometer knob in it though and the splitting was done on purpose to keep my code more organised.
<Behaviors> <Component ID="Component1"> <Parameters Type="Default"> <POTENTIOMETER>3</POTENTIOMETER> </Parameters> .................... </Component> <Component ID="Component2"> <Parameters Type="Default"> <POTENTIOMETER>3</POTENTIOMETER> </Parameters> ..................... </Component> </Behaviors>
Can anyone explain why an A:var parameter will not work correctly if it is shared across two components?