I would like the X Loc channel of one object to be driven by the X loc of another object, but in reverse. The following does this fine where I have called the vaiable ‘xCompensate’:
Scripted Expression:
-xCompensate
The next level of complexity is that I want the ‘-xCompensate’ to NOT happen to the driven object when the driving object has a Y loc value of above zero. So I thought something like this would work:
if y > 0: -xCompensate
But the error sign comes up! Can anyone show me how to get this to work please?
Is there a list of operators accepted by Blender Driver Scripted Expressions?
Many thanks! I tried the code and it works… but has made me realise my concept is wrong!
-xCompensate needs to happen ONLY when y=0. So I need to swap ‘>’ for something else. I tried ‘=’ but it doesn’t work! Any ideas? Also, what is the grammatical name for ‘>’ in the world of scripted expressions?