Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Using xpresso to change the size on an object being cloned, depending on how the cloner count

  • Using xpresso to change the size on an object being cloned, depending on how the cloner count

    Posted by Robin Ashurst on March 27, 2020 at 8:51 pm

    Hi there

    So what I’m wanting to do is ultimately have a cloner that is cloning an object (for example a sphere), which is let’s say 100mm dia. When there is only 1 count of the object cloned, the sphere is full size (100mm dia.). When the cloner count goes to 2, the sphere size become original size divided by the cloner count, therefore on count 2 the size becomes 100/2 = 50mm dia. Then on count 3 it becomes 100/3, then count 4 it becomes 100/4, and so on and so on.

    I’m a complete beginner in using xpresso so any help with this would be greatly appreciated. Thanks in advance!

    Robin

    Robin Ashurst replied 6 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Sam Treadway

    March 29, 2020 at 3:58 am

    This a really simple setup, actually.
    After you add the xPresso tag, drag the cloner and sphere into the editor graph.
    Add a Math:Add and (optional) Constant node.
    Enter the default value of the radius (half diameter) in the Constant node and then for the Math node, switch it to ‘divide’ mode.
    Then hook up all the nodes like this:

  • Robin Ashurst

    March 29, 2020 at 4:48 pm

    Thanks Sam this has worked perfectly!

    Much appreciated. Hope you’re keeping well during these uncertain times.

    Thanks again, Robin

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