Dmoozak Posted January 28, 2020 Share Posted January 28, 2020 Hello, I'm still very new to the Marionette tool. I'm trying to figure out how to implement the Solid Boolean nodes operation (Add/Subtract/Intersect) into the final Marionette Objects OIP as a drop down list. My wish is to be able to change the operation without having to go into the script to change it. Apologies if the solution is a simple one, but I've run out of ideas and resources to reference. Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted January 31, 2020 Vectorworks, Inc Employee Share Posted January 31, 2020 Unfortunately it's not that simple. The dropdown from the Solid Boolean node can't be exposed in the OIP of a Marionette object. In order to have the functionality exposed, you have to use a Valve node and place two Solid Boolean nodes in the drawing, where the Valve node would turn on and off the two Boolean nodes, depending on the True or False value you give the Valve node. The True or False value can be made accessible in the OIP. This would give you access to two of the Boolean functions. If you want access to all three Boolean functions, that makes it even more complex - I believe you could do it with multiple Valve nodes, but I would have to test it. 1 Quote Link to comment
Dmoozak Posted January 31, 2020 Author Share Posted January 31, 2020 @sbarrett , I appreciate the feedback. I'll play around with your recommendation on Monday and see if I can make it work the way I envisioned. Thanks again. Quote Link to comment
m.graf Posted February 3, 2020 Share Posted February 3, 2020 (edited) here is my solution: more details you can find in the VWX File (wrapper) Sorry for the three screenshots, i have try to change the first one and got this result 😕 test.vwx Edited February 3, 2020 by m.graf 1 Quote Link to comment
m.graf Posted February 3, 2020 Share Posted February 3, 2020 In this .vwx file the "boolean node" works with external choice... test.vwx 1 Quote Link to comment
Dmoozak Posted February 3, 2020 Author Share Posted February 3, 2020 @m.graf, your last test was just what I needed. Thank you for the time and effort you put into solving this for me! Quote Link to comment
Dishav Vasudev Posted February 14, 2020 Share Posted February 14, 2020 @m.graf is your file by any chance in 2020 version as I can't seem to open the drawing. I was hoping to understand how you've created a dropdown option with input values, since I am trying something similar where I want a rectangle to have pre-define 'height' and 'width'. And What I've done is created every single value I want using Dim input node, which goes into a ordered list and into pop dialogue box and into the rectangle node (image below). However, instead of the pop-up box being in the OIP, the pop up box appears only when 'running' the network. I have named the Pop-Up node but does not want to appear in OIP. Am I doing something wrong? Quote Link to comment
m.graf Posted February 14, 2020 Share Posted February 14, 2020 i have build you a very simple "choose node" (VW2019) / this node works in Marionette objects try to open /edit the "choose node", it's very easy to change or expand the script. test_vw2019.vwx test_vw2020.vwx 1 Quote Link to comment
Dishav Vasudev Posted February 14, 2020 Share Posted February 14, 2020 @m.graf Thank you so much for creating the network for me to understand. At first, I was really confused what you meant by edit the node. I have never done scripting but understand what you said, and so I added value (510, 610, 710) instead of choice_1, choice_2 and so forth, and did another pass node with other value options. However, I am not getting what I need and I wonder if its due to my lack of scripting knowledge or understanding of how to use nodes to do what you want. Example, I have 'values' in the pass node and I have tried to two different approach to create a geometry based on those values. (using your method, though I don't understand the use of 0, 1, 2 in integer values or the equal node) (use the value to integer as it was not creating a shape when I ran it) The result I get is a square box with the dropdown option of the values but the object is not the value and changes randomly when I select another value from drop down. Where am I going wrong? And, do you know if there any more tutorials to understand marionettes as I've gone through the 1-5 vwx marionette videos on youtube and seminar? Quote Link to comment
m.graf Posted February 14, 2020 Share Posted February 14, 2020 (edited) choose.vwx take a look at the script in this file (choose) the result from "popup node" is (0,1,2,3,4...) and you must add the DIM by script or with Marionette Network if choose == 1 Value = 2.135 Edited February 14, 2020 by m.graf 1 Quote Link to comment
Dishav Vasudev Posted February 14, 2020 Share Posted February 14, 2020 @m.graf I see what you have done in terms of the script and also manage to create additional choices (3 more) and altered the number values which is a great help, so thank you very much for your time. Is there anyway I can possibly contact you directly for any further issues relating to something I am creating. Maybe even helping me have a better idea of where I should start I've seen 3/4 possible ways of doing something I am trying to create. 32 minutes ago, m.graf said: you must add the DIM by script or with Marionette Network What do you mean by DIM by script (I am a complete noob at script but I assume you add 'DIM' somewhere?) When you say marionette network, do you mean the DIM node, there only seems to be output value, unless you mean changing the script for that node too? Quote Link to comment
m.graf Posted February 14, 2020 Share Posted February 14, 2020 i change the script in this Node to: Sorry: "DIM" = Dimension, such as meter or inch. (Node DIM) "Marionette Network" = all connected nodes greatings M.Graf 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.