Michael Ciccone Posted May 25, 2023 Share Posted May 25, 2023 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. Quote Link to comment
Marionette Maven Marissa Farrell Posted May 25, 2023 Marionette Maven Share Posted May 25, 2023 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 filterRanges_MFarrell.vwx Quote Link to comment
Marionette Maven Marissa Farrell Posted May 25, 2023 Marionette Maven Share Posted May 25, 2023 Here's a continuation of the file with another approach (lower network) This one takes your single value and compares it against target numbers while using an AND operator. This is likely a better approach for your exact situation. filterRanges_MFarrell.vwx Quote Link to comment
Recommended Posts
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.