EmilyArch Posted November 17, 2021 Share Posted November 17, 2021 I'm trying to compare Dimensions using Less Than in a Marionette script, and I've found that I have to put Real Numbers into the Less Than Node in order to get the Boolean result I need. I've been trying to convert my Dimensions to Real Numbers, and I'm hitting a road block in doing so. I've tried Float, Div by 1", and Convert to Integer, none of which has worked. I'm sure I just don't know the appropriate node for the conversion, and I'm hoping someone can point me in the right direction. Thanks! Quote Link to comment
Antonio Landsberger Posted November 19, 2021 Share Posted November 19, 2021 Hello @EmilyArch, Welcome to the Vectorworks forum! I'm not sure why using both an integer and a float shouldn't work with the Less Than node. Have a look at the screenshot and file here: Int&Float-v2021.vwx Still, in case you need a way to convert an integer into a float, right now the easiest way is to use the Function node and insert "float(x)" in the OIP as seen in the screenshot. Regards, Antonio Quote Link to comment
EmilyArch Posted December 1, 2021 Author Share Posted December 1, 2021 Antonio, Thank you so much for the response. It did not resolve the issue I was having, but it did help me to find a solution. I wanted to update this thread with the resolution I finally discovered. The issue is a glitch - I had renamed by dimension nodes with the dimension (eg: a node that measured 6" was named "6"). Those nodes did not function in the less than comparison. When I deleted those nodes and replaced them, this time naming them with words (eg: "Six"), the nodes, and thus the script, functioned. I appreciate the help! I hope this will help someone else having a similar issue. Best, Emily 1 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.