MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

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

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Robin Ashurst
Using xpresso to change the size on an object being cloned, depending on how the cloner count
on Mar 27, 2020 at 8:51:03 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


Return to posts index

Sam Treadway
Re: Using xpresso to change the size on an object being cloned, depending on how the cloner count
on Mar 29, 2020 at 3:58:02 am
Last Edited By Sam Treadway on Mar 29, 2020 at 4:00:27 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:



Return to posts index

Robin Ashurst
Re: Using xpresso to change the size on an object being cloned, depending on how the cloner count
on Mar 29, 2020 at 4:48:28 pm

Thanks Sam this has worked perfectly!

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

Thanks again, Robin


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]