
- Posts: 304
- Joined: Mon Dec 03, 2012 3:35 pm
Hi there,
I'm struggling a bit with two (most likely very little) things and google won't do me any good
First is for building Macros.
Basically, I want to use something like a Switch (Nuke term), so basically an option to switch between two inputs. For example, the Macro should have a button to preview a luma-matte or something, you just click it and you see the matte. In Nuke I could just use a switch, but I can't seem to find something like that in Fusion.
Is there a way to have something line switches in Fusion Macros? I mean there has to be some way to switch things?
Second is about Expressions. Well, not the normal ones, but the ones in the custom-tool.
In this very case I just want to use an if-else string. I searched a bit in the VFXpedia but the string provided ("iif(x > y, y, x)" for "if x is bigger than y, use y else use x") doesn't seem to work.
Basically I wanted to make simple despill expression, I wrote it like this
But even simple setups of that expression didn't work out (e.g. iif(g1 > r1, r1, g1))
Right now I just wrote "max(r1,b1)" into the green-expression and later applied it with a "darken" on to the plate with a channel booleans. But I think there has to be a way to do it inside the custom tool?
Best,
Rick
I'm struggling a bit with two (most likely very little) things and google won't do me any good

First is for building Macros.
Basically, I want to use something like a Switch (Nuke term), so basically an option to switch between two inputs. For example, the Macro should have a button to preview a luma-matte or something, you just click it and you see the matte. In Nuke I could just use a switch, but I can't seem to find something like that in Fusion.
Is there a way to have something line switches in Fusion Macros? I mean there has to be some way to switch things?
Second is about Expressions. Well, not the normal ones, but the ones in the custom-tool.
In this very case I just want to use an if-else string. I searched a bit in the VFXpedia but the string provided ("iif(x > y, y, x)" for "if x is bigger than y, use y else use x") doesn't seem to work.
Basically I wanted to make simple despill expression, I wrote it like this
- Code: Select all
iif(g1 > (max(r1,b1)), max(r1,b1), g1)
But even simple setups of that expression didn't work out (e.g. iif(g1 > r1, r1, g1))
Right now I just wrote "max(r1,b1)" into the green-expression and later applied it with a "darken" on to the plate with a channel booleans. But I think there has to be a way to do it inside the custom tool?
Best,
Rick