Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Adding a value to object position in Xpresso

  • Adding a value to object position in Xpresso

    Posted by Miguel De mendoza on March 17, 2016 at 10:10 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!

    Miguel De mendoza replied 10 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Adam Trachtenberg

    March 17, 2016 at 10:28 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.

  • Miguel De mendoza

    March 17, 2016 at 10:58 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!

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