Vector variables 101: Error?


#1

So command is supposed to return the position of the 3rd vertex of the selected object. I get the value returned but when I go to use that value it gives me an error.

This Works:
(
string $Select_Components[] = ls -sl ;
string $Parent = $Select_Components[0] ;

vector $Point3 = pointPosition ($Parent+"Shape.vtx[3]") ;
)

This doesn’t:
(
spaceLocator ($Point3.x) ($Point3.y) ($Point3.z) ;
)

The Error:
(
// Error: Invalid object or value: -0.0422285 //
)

which so happens to be the value of the ($Point3.x) I have no idea whats going wrong.

ok… completely disregard I missed some tags on spaceLocator…


#2

The synatx of the space locator with a position is:

spaceLocator [b]-p[/b] x y z;