IJSSEL Posted November 5, 2018 Share Posted November 5, 2018 Is it possible to feed a Pop up node with information from a List node ? Or, is it possible to have a List node behave as a Pop up node ? Advise much appreciated. Thanks Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted November 12, 2018 Vectorworks, Inc Employee Share Posted November 12, 2018 This is possible with a Popup Dialog node, located in the User Interaction folder. The difference between this node that the Popup node is that every time the script is run, a dialog with a dropdown menu will appear, and you will have to pick your option before the network will finish running. If you want a static popup that appears in the OIP of a Marionette object, you still need to use the original Popup node and create the list via editing the script inside the node. Quote Link to comment
IJSSEL Posted November 12, 2018 Author Share Posted November 12, 2018 Thanks for the input. What I'm looking for is a way to feed the Pop up node with a variabel Integer ( Lets call it 12). This variabel Integer is generated by part of the network. The output of the Pop up is : if input == 1, then output = 12 if input == 2, then output = 2*12 if input == 3, then output = 3*12 etc. etc. I need the Integer 12 to be calculated by the network. So it could be any Integer. As far as I know it is not possible to have a node to change the script of the Pop up? So I was trying to use a List node. The List accepts the variabel Integer and the output is what I wanted ( 12, 2*12, 3*12, or 15, 2*15, 3*15, etc). But how do I select one of outputs the List ( like you do in a Pop up)? Sorry for my criptic question. Hope it makes sense. Thanks again. Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted November 14, 2018 Vectorworks, Inc Employee Share Posted November 14, 2018 I believe it would just be easier to make the multipliers (1,2,3,...) the output of the popup and multiply that output by 12 or whatever variable integer. Again, you can use the Popup node if the multipliers will always be the same, or you can use the Popup Dialog node to have a dialog appear after the script is run. The output of the popups are integers representing the index value of the item chosen from the list. Since your list will basically be 1,2,3 etc you can add one to that integer to get the value you need. I have built some examples for you. Popups.vwx Quote Link to comment
IJSSEL Posted November 15, 2018 Author Share Posted November 15, 2018 Thank you,again. I'm not at my Office for another 10 days and no laptop at hand. However, I understand what you are getting at and will start working with your suggestions the moment I'm back. Will keep you informed. Best regards. Quote Link to comment
IJSSEL Posted November 26, 2018 Author Share Posted November 26, 2018 Hello Mr. Barrett, Back at the office but can not open your attachment Popups.vwx. I'm on VW Architect 2018-SP5. Get error message : "Can't open file". Would you be so kind to post the file again ? Thanks, Best regards Quote Link to comment
Vectorworks, Inc Employee SBarrettWalker Posted November 26, 2018 Vectorworks, Inc Employee Share Posted November 26, 2018 The file is a 2019 file - I have exported it to 2018 and posted it here. Popups v2018.vwx Quote Link to comment
IJSSEL Posted November 28, 2018 Author Share Posted November 28, 2018 Yes, thanks. Played a bit with it, implemented it in the script and it works😊 After Wrapping the script ( and testing- all OK), I made a Menu Command . So far so good. But the O.I.P. does not show up. Without the parameters in the O.I.P. the Menu Command is not of very much use. What I'm doing wrong ? Quote Link to comment
IJSSEL Posted November 28, 2018 Author Share Posted November 28, 2018 Sorry, I probably should have made this a New Question. Quote Link to comment
Marionette Maven Marissa Farrell Posted November 28, 2018 Marionette Maven Share Posted November 28, 2018 Menu commands won't place a working Marionette object, they work how it would if you just ran the Marionette script or wrapper once. Quote Link to comment
IJSSEL Posted November 29, 2018 Author Share Posted November 29, 2018 Hmmm. I was not aware of that. Why should one use the Menu Command if it does not give you the possibility of changing the parameters in the OIP ? It is like using the Circle Tool in VW and having to chance the diameter in VS each time you want a smaller or larger circle ? Or am I missing something? Pls. 'enlighten' me 😊 Best regards Quote Link to comment
Marionette Maven Marissa Farrell Posted November 29, 2018 Marionette Maven Share Posted November 29, 2018 The primary use for a menu command would be to run a script on a selected object or to complete a repetitive task that does not require a PIO. If you want to place a marionette object similarly to how you would use a tool, I would suggest saving your marionette object as a Red Symbol in your resources. Quote Link to comment
IJSSEL Posted November 29, 2018 Author Share Posted November 29, 2018 Okay, thank you. Saving the Wrapper as a Red Symbol works ok. Output of the symbol though is not the same as the output of the Wrapper. Object shows up fine in Wrapper Mode but not with the Symbol. Trying to figure it out. Quote Link to comment
IJSSEL Posted November 29, 2018 Author Share Posted November 29, 2018 The Symbol works fine now ( needed some adaption of the Zero point of the drawing). But I have lost my RGB colors. In Wrapper Mode I can change the RGB colors in the PIO and have it rendered in OpenGL , but in the Symbol 'Mode' it will not render the colors. Any idea's ? Quote Link to comment
Marionette Maven Marissa Farrell Posted November 29, 2018 Marionette Maven Share Posted November 29, 2018 Could you send that file to me privately? Quote Link to comment
IJSSEL Posted November 29, 2018 Author Share Posted November 29, 2018 Yes, I will do. Just found out that it will render in Renderworks Final but not in OpenGL. Quote Link to comment
IJSSEL Posted November 29, 2018 Author Share Posted November 29, 2018 Lost my Worksheet, I thought. But does not show up when not activated, of course. Bit of black-out overhere. To many long hours behind my screen 😣 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.