Control Position / Input Position

franklin's Avatar

franklin

19 Jul, 2021 10:17 AM

How do I send the position input the right values?
I want to control for example only the x - axis of a position.
When I connect a wave with the position input it usually controls x & y.
Would like to control x and y with two separate wave modules for each axis for example.
Using Nodebox 3 on windows.

  1. Support Staff 1 Posted by john on 19 Jul, 2021 12:05 PM

    john's Avatar

    Hi Franklin,

    Whenever you have a position value you can break it into separate X and Y values by doing a lookup:

    • Feed position into lookup node set with key set to x to retrieve X value
    • Feed position into lookup node set with key set to y to retrieve Y value

    If you have a single value that you wish to feed into a position port, use make_point. For example, if you want to vary just the X value, feed it into the X port of the make_point node and leave Y. at 0 (or whatever fixed value you want to use). The result will be an (X,0) position that you can feed into any node that needs a position.

    Use a second make_point node to do the same thing with your Y value (leaving X at 0) if you want.

    Does that answer your question? Please feel free to ask followup questions.

    Happy Nodeboxing!

    John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

06 Feb, 2025 01:37 AM
04 Feb, 2025 06:32 AM
04 Feb, 2025 05:04 AM
30 Jan, 2025 09:31 AM
30 Jan, 2025 09:08 AM

 

30 Jan, 2025 08:40 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM
21 Jan, 2025 09:41 AM
21 Jan, 2025 09:36 AM