PDA

View Full Version : Move/Rotate objects via obcjectlink in xpresso


Little_Devil
10-30-2009, 08:35 PM
hi,

i have got an object with some user data. in the udata you can set 2 splines for a sweep
nurbs. it is solved by a sweep nurbs with 2 instance objects (spline + cross). in xpresso the
the user data spline links are linked to the two instance objects.

how do i get access to the linked splines position / rotation ? i want to move the axis center
of the instance objects into the corresponding spline axis centers.

please excuse my english. i hope this was readable :) did a basic google search with no
results.thanks in advance.

ferdinand

edit : eh, think before you post ;) done with some simple coffee ;) org = spline objectlink;
inst instance object link ...

org->SetPosition(inst->GetPosition());

Per-Anders
10-30-2009, 09:14 PM
Just open the port for position/rotation on the node in XPresso, drag & drop a link. Please read the manual, driving values is the total basics for XPresso.

Little_Devil
10-30-2009, 09:47 PM
i'm well aware of the xpresso basics :) at least i hope so. i can't simply open the node
pulldown, because i have no object pulldown, because i have no object. i have only a
userdata objectlink variable.

with a pic - move A to B, only using the object link B's userdata provide. A doesn't exist
yet, it is only there for vis.

http://img11.imageshack.us/img11/4407/75191070.gif

dit it with a coffee node now, but i'm still interessted in a pure node solution, so what
do you mean with *simply open the pulldown* ...

edit : eh i forgot to drag the cube into the userdata link in my little example pic ;)

Per-Anders
10-30-2009, 11:26 PM
Connect the Link to the Object input on an Object node and use that to set/get the parameters for the linked object.

Little_Devil
11-01-2009, 01:01 PM
thanks, was my first guess also , but i made the mistake to delete the object link inside
the object node to get a *plain* object node. without an ref i couldn't ad any ports.

this logic stuff is just not my world :)

CGTalk Moderation
11-01-2009, 01:01 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.