Not sure if it's a bug or if it's just my old potato mac or if it's intended or if there's some user error but appreciated if anyone could test this out. It's real simple!
Copy this code into Fusion (it's just three nodes and two super basic expressions):
- {
- {
- Tools = ordered() {
- The_Source = Mandel {
- CtrlWZoom = false,
- NameSet = true,
- Inputs = {
- GlobalOut = Input { Value = 78, },
- Width = Input { Value = 303, },
- Height = Input { Value = 242, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, }
- },
- ViewInfo = OperatorInfo { Pos = { -550, -1402.5 } },
- },
- Swizzler = Swizzler {
- PassThrough = true,
- NameSet = true,
- Inputs = {
- LayerOrder = Input { Value = ScriptVal { {
- [0] = 1
- } }, },
- Input1 = Input {
- SourceOp = "The_Source",
- Source = "Output",
- },
- LayerName1 = Input { Value = "Layer1", }
- },
- ViewInfo = OperatorInfo { Pos = { -550, -1369.5 } },
- },
- Lab_rat = Plasma {
- CtrlWZoom = false,
- NameSet = true,
- Inputs = {
- GlobalOut = Input { Value = 78, },
- Width = Input {
- Value = 303,
- Expression = "Swizzler.Output.Width",
- },
- Height = Input {
- Value = 242,
- Expression = "Swizzler.Output.Height",
- },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, }
- },
- ViewInfo = OperatorInfo { Pos = { -550, -1336.5 } },
- }
- }
- }
Lab_Rat get the Width and Height from the output of the (in the code initially disabled) Swizzler node (using default settings so nothing weird). In practice, since the Swizzler is disabled, Lab_Rat gets the Width/Height from the source (The_Source). And that should work as expected.
Now enable the Swizzler. The expectation would be that Lab_Rat gets the Width and Height from the Swizzler, which should be the same as the output from The_Source. But for me I get an error message like this:
Lab_rat cannot get Parameter for Width at time 0, layer [Main]
Lab_rat failed at time 0
And the expressions on Lab_Rat results in 0 instead of the expected values.
This plays out the same in both the latest stable Fusion Studio (20.3.2 build5) and version 21b3. Not tested in Resolve (but my tummy says it's probably the same there).
Since checking the Width and/or Height (or more likely OriginalWidth/OriginalHeight) of inputs/outputs is a fairly common thing, certainly in a lot of my over 40 shared macros here, this is currently a bit of a bummer since layers are kinda neat. And having to warn people that a macro breaks if the source uses layers blows whale balls big time:/
So I thought that maybe I should do a bug report but just wanted to do a sanity check here first:)