Jump to content

Sign in to follow this  
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

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

Share this post


Link to post
  • 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

    Share this post


    Link to post

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    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.

    Sign in to follow this  

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×
    ×
    • Create New...