Jump to content
Developer Wiki and Function Reference Links ×

Marionette Question - Conditional Attributes

Recommended Posts

Hi. I've just started delving into the world of marionette and I've hit a wall. My hope is to alter atributes of created geometry based on the value on an integer controlled by a slider in the OIP


Essentially the goal is for the logic to operate as follows:


If (int) < 12 then (attribute a)

If 24 >= (int) >= 12 then (attribute b)

If (int) > 24 then (attribute c)


If anyone to point me in the direction of where to start, that would be great. Thanks in advance.

Link to comment
  • Marionette Maven

Here's a file that demonstrates one approach (there are many ways to do this)

Let me know if you need any help with it. 


Essentially, the ordered list contains all of the possible attributes, I used an Any node to give a list of values to compare (those lists are of equal length)

The point nodes (Point 2D and Get XY) create tuples to keep the values together when filtering them so they don't come out of pairs


Link to comment

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.   Restore formatting

  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.

  • Create New...