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

Scaling numerically!

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
stephane gouin
Scaling numerically!
on Nov 18, 2011 at 7:15:38 pm

Hey everyone,

I wondered how I could scale an object numerically. Example!

My object is 20x40x60, but I want it to be...16x32x48 but I just want to input my 48 value and the others to follow in proportion.

Can anyone give me a hand!

Thanks in advance

Return to posts index

Graham Quince
Re: Scaling numerically!
on Nov 20, 2011 at 4:18:57 pm

Xpresso can do this.

Add an Xpresso tag to one of your objects.
In the X Group window drag in the '48' object.
Click on the red corner and find the scale settings (Coordinates > Scale)
Drag in the other two objects. In their blue corners, click and add the same scale settings.
Anywhere on the XGroup 'desktop' right-click and choose New Node > Xpresso > Calculate > Formula.
On the new Formula node which will have appeared, click on the blue corner and choose Value.
In the attributes window, check the Use Portnames checkbox
In the Formula text field type the following:


From the '48' object's scale port (blue circle), drag a line to the Formula's Value1 port.
From the Formula's output port drag another line to the scale property of your smaller box.
Highlight and copy the Formula node.
Change the formula's text to be


Drag a line from the '48' object to this Formula's value1 and connect up the output in the same way.

And that's it. Your smaller object will retain the same scale relationship no matter what size you put in the largest object.

If any of this is unclear, I'm preparing a tutorial which partly deals with simple Xpresso set-ups like this. Stay tuned.

Graham - Free FX for amateur films

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved