Thank you very much, Dan. That’s exactly what I needed.
I worked on it a little and expanded it to:
x = thisComp.layer(“Null 5”).transform.position[0];
y = thisComp.layer(“Null 5”).transform.position[1];
if (y > toWorld([0,0])[1] && y < toWorld([0,height])[1] && x > toWorld([0,0])[0] && x < toWorld([width,0])[0]) 0 else 100;
and it’s perfect :)Thanks.
Just one more, if you’re in the mood. I would like to achieve the effect of ‘mouse over’ like there is on the bottom of this post, where it says: ‘rate this post’ and there are 5 cow-rectangles. I would parent 2 pointers to null (standard and hand pointer), so when null comes over any solid, the standard pointer’s opacity goes 0 and hand pointer’s opacity goes 100. I hope you understand what I mean and that you can help me.
Thanks a lot, Jakas