Getting rid of Null/N=0 Values

Hi guys,

I haven't been able to get rid of empty items in this list although i tried using clean, null item or dispatch...

Any idea what else i could do?

many thanks,

Arthur

  • up

    David Rutten

    Hi Arthur,

    zero is not the same as null. Zero is a perfectly valid (and rather common) number, whereas a null is a lack of a number.

    If you want to remove specific values from a tree, you should create a cull pattern that is FALSE for those values and TRUE for everything else. In this particular case it should be easy, because when you feed ZERO into a boolean parameter it is automatically converted to FALSE, and anything else is converted to TRUE.

    Oh wait! That's not what you meant. You want to remove empty branches from a structure. You have to use the Clean component for this and make sure you set the [E] input to True:



    --
    David Rutten
    david@mcneel.com
    Poprad, Slovakia
    4
  • up

    Francisco Lara

    David

    I am trying to do this:

    "If you want to remove specific values from a tree, you should create a cull pattern that is FALSE for those values and TRUE for everything else. In this particular case it should be easy, because when you feed ZERO into a boolean parameter it is automatically converted to FALSE, and anything else is converted to TRUE."


    but I am not sure how to feed the "P" value for the cull pattern.

    Should I feed it with a expresion?

    Thanks!

    2
    • up

      Frans Magnusson

      I could really use a "cull if null" button on the output rightclick menu of components. Not sure if it is a general enough request, though.

      2