ivanisavich
07-05-2006, 10:54 PM
Hi there fellow scripters,
I have a problem that I've been tearing some hair out over.
When I have an object whose coordinates I call up through the "$object.pos" function, it returns the world space coordinates of that object (whether or not it's parented to something else). But, when I call up the "$object.pos.controller.value" for the same object, it will only return the local coordinates of that object, even if I preface the function with "in coordsys world".
The reason I need to get the world coordinates of the object through the ".pos.controller.value" parameters is because I'm using that controller to drive a positional float script (using the new variables capabilities of Max8, since dependsOn is obsolete)...and the new variables only support controllers or subanims (according to the error message that comes up when I try otherwise).
Does anyone understand my problem? And/or...anybody got an idea for a solution?
Basically, I'm looking for some way to tell my float script to look at the WORLD coordinates of the object's position controller that it's referencing, and not the local coordinates.
Any help is much appreciated!
I have a problem that I've been tearing some hair out over.
When I have an object whose coordinates I call up through the "$object.pos" function, it returns the world space coordinates of that object (whether or not it's parented to something else). But, when I call up the "$object.pos.controller.value" for the same object, it will only return the local coordinates of that object, even if I preface the function with "in coordsys world".
The reason I need to get the world coordinates of the object through the ".pos.controller.value" parameters is because I'm using that controller to drive a positional float script (using the new variables capabilities of Max8, since dependsOn is obsolete)...and the new variables only support controllers or subanims (according to the error message that comes up when I try otherwise).
Does anyone understand my problem? And/or...anybody got an idea for a solution?
Basically, I'm looking for some way to tell my float script to look at the WORLD coordinates of the object's position controller that it's referencing, and not the local coordinates.
Any help is much appreciated!
