ImageSampler values

Hello;

Is it possible to reverse the image sampler output values so that the black area is given value "1" and the white area is given value "0"?

  • up

    Christoph Degendorfer

    Hi Zayad,

     

    you can use the Remap Numbers Component (Math/Domain/RemapNumbers)

    With this component you can define a new Range for a List of Numbers. If you set the Target Domain to

    "1 To 0" all Numbers will be in the Range.

     

     

    hope this helps

     

    best

    Christoph


    1
    • up

      David Rutten

      Use a subtraction component that does:

       

      1 - t

       

      where t is the sampled value. Christophs solution is far more flexible but also a bit harder to understand.

       

      --

      David Rutten

      david@mcneel.com

      Poprad, Slovakia