Jump to content

Marionette - Summarizing results in a list


Recommended Posts

Hello everyone,

 

I'm quite new to Marionette and I'm stuck within a network I'm trying to build.  I'm using an Objects By Criteria node to return a list that defined by a criteria I've set. The resulting list contains several items that pertain to the same criteria, but I want the list summarize and return only one instance of the different types of items that result from the criteria I've set (hope that makes sense, hard to describe). What I'm looking for is no different than when a database row in a worksheet returns items that match a criteria and then you can summarize  those values so that the result only shows a single summarized instance of the different items returned by the criteria. 

 

I've attached the network I'm working on, with a square drawn around the node that I'm trying to summarize/. I put a "remove Duplicates" node in but that has no result.

 

Thanks so much for your help!

 

Adrian

Marionette Legend.vwx

Link to comment

Hello, 

the <remove duplicate> node belongs behind the property that you do not want to have more than once. Or before the text to be written in the legend.

 

(die <remove duplicate> node gehört hinter die Eigenschaft, die Sie nicht mehrfach haben wollen. Beziehungsweise vor den  Text, der in die Legende geschrieben werden soll.)

 

greatings

M. Graf

Edited by m.graf
Link to comment

Hi Adrian,

welcome to the Marionette crowd!

 

As far as I can see the objects are secondary. What you are really after are the class names of those objects and of those class names you only want one of each.

If that is the case, this is really simple. The Remove Duplicates node will play a part in this. The first node after the Objs by Crit should be Get Class after which you connect the Remove Duplicates. Now you have a list of class names without duplicates. From there continue the network as you have it already.

Good job so far!

 

Regards,

Antonio

 

PS: Give the Set Class Extended a try. It will save you many nodes and make things more tidy.

 

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...