Jump to: Board index » General » Fusion

CustomTool functions (median etc.)

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline
User avatar

rengel

  • Posts: 9
  • Joined: Tue Jun 02, 2020 11:20 am
  • Real Name: Rainer M. Engel

CustomTool functions (median etc.)

PostMon Jun 20, 2022 11:42 am

I often use the CustomTool but mostly only at the surface of its abilities.

I remember that there once was a nice documentation about what is possible with it and right now I am looking for a median or ranking function for n elements. Does this exist?

EDIT..
I figured it out and here are the lines to copy into the fields of the CustomTool>Channel Tab

MEAN
Code: Select all
(c1+c2+c3)/3

MEDIAN
Code: Select all
if ((c1 <= c2 && c2 <= c3) || (c3 <= c2 && c2 <= c1), c2, if((c2 <= c1 && c1 <= c3) || (c3 <= c1 && c1 <= c2), c1, c3))

It is static and only working for three inputs (elements), but it works inside of one node.

Regards,
Rainer
Rainer M. Engel
scientific|Media imageLAB Berlin, Germany

Return to Fusion

Who is online

Users browsing this forum: Sander de Regt and 33 guests