Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Xpresso: How to iterate through an objects points and assign a Null’s position

  • Xpresso: How to iterate through an objects points and assign a Null’s position

    Posted by Ryan Paterson on June 14, 2013 at 5:20 am

    New to Xpresso and trying to figure out how I could rig it up so that if I have a shape with say, 6 points, and I want to iterate through those points while simultaneously iterating through a list of nulls (one null per point), and update the position of each point based on the position of the corresponding null.

    My first thought was to have a hierarchy node call the nulls but there’s no way to explicitly call a null based on it’s number in the list. ie) My iterator node goes through each point in the shape based on its index number, but as far as I can tell there’s no way to use that same information to call the corresponding null. But I know there has to be a way!! Thanks

    Ryan Paterson replied 13 years, 1 month ago 3 Members · 3 Replies
  • 3 Replies
  • Brian Jones

    June 14, 2013 at 3:16 pm

    what kind of motion are your Nulls going to be going through? Are you animating them by hand?

  • Adam Trachtenberg

    June 14, 2013 at 3:43 pm

    Here’s a basic setup using the Hierarchy Node: 6145_iterationnulls2pointpos.c4d.zip

    EDIT: oops — just noticed that I had two object index nodes in that setup, whereas you only need one. Just delete one and reconnect the wires.

  • Ryan Paterson

    June 14, 2013 at 5:00 pm

    Very nice, Object Index seems to be a bit of a life saver. Too bad its not in the Iterator group where it belongs!

    Thanks again

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy