Jump to content
Developer Wiki and Function Reference Links ×

Calculations node to stack panels


Recommended Posts

 

Hi,

I need a node that places the panels above each other. Attached a small network to explain what I want to achieve. Is there a possibility to solve this with a single node? I don't want to slow down the speed of my network.

 

Example:

I have a list like this:

[0] =0

[1]=500

[2]=400

[3]=300

 

And i want the result of the list look like this:

[0]=0

[1]=0 + 500

[2]=0+500+400

[3]=0+500+400+300

 

All hints are welcome.

Regards Nico

 

 

 

NodeToStackPanels.vwx

Link to comment

 

Thank you for your quick response. It works perfectly!

I test the same network with connected records. See attached.

Now I have the problem if no rectangle is made, I get an error. But the network remains working well. Is there a way to not create 7 rectangles first and then delete what I do not need?

I work on a cabinet which automatically calculates the width and height of the front. However, I want the ability to customize the layout like the test network. Removing the door from the original cabinet is not a problem because it is always calculated and, if necessary, removed at the end of the script. My goal is, if the test network input is empty, no panels will be calculated + the original door will be retained.

The worksheet i am using to get te panel-data also attached.

 

My non-working approach:

Changing the handle from the set record node. from (0) to (None)

#inObj = Marionette.PortIn( vs.Handle(0), 'obj' ) #To # inObj = Marionette.PortIn( vs.Handle(None), 'obj' )

 

Thx for any advice.

Regards Nico

 

NodeToStackPanels.vwx

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...