List.ReplaceEmptyLists (Clockwork Package)


#1

Hi guys, hi Andy :wink:

I’m despreately trying to make the List.ReplaceEmptyLists work (I have the latest Clockwork version installed + Dynamo 0.8.2) and it just won’t work!

As a matter of fact it’s replacing just the first empty item:

 

07-10-2015 19-36-25

 

 

 

 

 

 

 

 

 

 

If I choose a list as input for “replacement”, then the node will replace as many empty lists as there are items in the list.

Obviously this could do the trick, but it’s not really an elegant solution and I guess it’s just a little tweak in the custom node, or?

 

Thx!

Lejla


#2

Hi Lejla,

Did you try changing Lacing to longest.


#3

Lejla, If it doesn’t work for you try “ReplaceByCondition” node.

Untitled


#4

Kulkul, first of all thanks a lot and apologies for replying only now, unfortunately I got stuck in non-Dynamo related work :frowning:

I did try different lacing, however it didn’t work either - ReplaceByCondition is a perfect workaround of course, thanks once again!

Cheers, Lejla


#5

Unfortunately this does not work if the original list is composed of elements and lists… Below, the resulting list is identical to the source list:

If I flatten the list, then the Empty List disappears and I loose the total number of items in the list…