Access Link parameter

Hello Forum

I have an error i dont understand, i am adding a big formula to the Expression field of one Link because it has to follow the ServerController, but with a deviation defined by the expression…
Then I get the error: Error in component ‘Q11’ link ‘Link_2’ dof ‘J1’ property ‘ValueExpression’. Function ‘COS(double)’ not found.

So i thought i could just make a custom script and add the value to the Value expression (e.g. Properties.MyVal) but i cant seem to get hold on the ServoControllers Q11 value in the Python script?

Any ideas to how i can solve either problem?

I think i just solved my own problem;

MyCalcVal = comp.findNode(‘Link_1’)
print comp.getProperty(“Q11”).Value

The findNode is the aproach for this…