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

Adding a value to object position in Xpresso

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Miguel de MendozaAdding a value to object position in Xpresso
by on Mar 17, 2016 at 10:10:35 pm

Hi, I have a simple cuestion(I think): How can I add a value to the position of an object in Xpresso, without locking the position to that value? Something like in after effects expressions:
myValue = 10;
myValue + value


Thanks!


Return to posts index

Adam TrachtenbergRe: Adding a value to object position in Xpresso
by on Mar 17, 2016 at 10:28:06 pm

In Xpresso you would use a Calculate>Add node. Feed in cube's Y pos for example, and then create a constant node and set it to 100. Then feed that into the add node. Feed the result back into the Cube's Y pos In port.

When you do this, however, it will execute on every frame, so if you just want it to happen once you'll also need to use time and compare nodes to switch on the Cube node at a particular frame.


Return to posts index

Miguel de MendozaRe: Adding a value to object position in Xpresso
by on Mar 17, 2016 at 10:58:16 pm

Thanks Adam, I didn't tell that the value I wan to add is changing over time(I'n new in Xpresso sorry), so on each frame it adds the new position, and the object falls to the infinite. However, I found an easiest solutinon while trying what you say, I simply nested my object into a null. Thanks for help!


Return to posts index

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