PDA

View Full Version : AAAArrghh!


chrleon
11-25-2002, 04:10 PM
Damn Coffee..

How do you read the xposition of one object and copy it to another?

tried all sorts of GetV0, GetMG, GetPosition

Help.

rgwarren
11-25-2002, 05:07 PM
Try XPresso. It tastes better :)

chrleon
11-25-2002, 05:08 PM
I know, but I only have xl7

RickBarrett
11-25-2002, 06:46 PM
Here's some quick and dirty code that might help.

var vec = op->GetPosition();
var target_op = doc->FindObject("target_object");
var target_vec = target_op->GetPosition();
target_vec.x = vec.x;
target_op->SetPosition(target_vec);

Also, check the plugincafe forum for programming help.

- Rick -

chrleon
11-26-2002, 10:08 AM
thanks.

Here's what I used it for..

Just a quick test with expressions..
These things are difficult to grasp..

walktest.mov (http://www.3djegrad.net/forum/anim/walktest.mov)

CGTalk Moderation
01-13-2006, 10:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.