Jump to content
Developer Wiki and Function Reference Links Read more... ×
IJSSEL

Pop Up Node - New question

Recommended Posts

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

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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 ?

Share this post


Link to post

Sorry, I probably should have made this a New Question.

Share this post


Link to post

Menu commands won't place a working Marionette object, they work how it would if you just ran the Marionette script or wrapper once.

Share this post


Link to post

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

Share this post


Link to post

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. 

Share this post


Link to post

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.
 

Share this post


Link to post

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 ?

Share this post


Link to post

Yes, I will do. Just found out that it will render in Renderworks Final but not in OpenGL.

Share this post


Link to post

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 😣

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×