Jump to content

  • “Great art picks up where nature ends.”  Marc Chagall 

Sign in to follow this  

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

Use condition node. Add multiple inputs and define integer values then drive the inputs (index) with with 3 integers

Free C4D trainings from MAXON professional on our youtube channel



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!


    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.

    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.

    Sign in to follow this  

    • BLOGS

    About Us

    C4D Cafe is the largest Cinema 4D community. We provide facilities for discussion, showcasing and learning our favourite 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, watch tutorials directly from our video gallery,  get your own private messenger, post and upload images, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, C4D Cafe is the right place to be for learning 3D.  :cowboypistol:

    • Create New...