Jump to content

bradleyness

Xpresso Integer number to specific value

Recommended Posts

I'm trying to change an objects position based on an integer value. I've got 3 states I want. So state 1 the object stays where it's at. State 2 the object moves over 188cm in X space and state 3 it moves over 376cm. 
Basically it's 1= +0, 2=+188, 3=+376.
This is totally basic, I'm sure, I've looked through the manual and for online tutorials and am hoping someone can point me in the right direction to which node(s) can assist with this. 
Thanks for any help!

Share this post


Link to post
Share on other sites

  • Topic Author
  • YES! that did the trick! I added a constant for each state and have my integer driving the switch. 
    Thanks so much!

    Yes.gif.858cc16647708679cb9e6fdb463ebc1a.gif

    • Namaste 1

    Share this post


    Link to post
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


    • Recently Browsing   0 members

      No registered users viewing this page.

    YOUTUBE CHANNEL:

    ABOUT US:

    C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite software :) Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, get your own private messenger, post status updates, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, Cafe is the right place.
    ×
    ×
    • Create New...