@P.y = point(1, "P", @ptnum);
so I want to fetch the P attr from other object (connected to input 1). It works as expected but since the P is vector, by default i can only get the 'x' component.
I want to fetch the 2nd component of P (which is y). I tried both of these codes but they're not working :
@P.y = point(1, "P", @ptnum).y; or @P.y = point(1, "P", @ptnum)[1];
to make it works , i have to break the script into 2 lines:
vector pos = point(1, "P", @ptnum); @P.y = pos.y;
What is the problem with those single line scripts ?



