Page 1 of 1

Background.Type

PostPosted: Thu Dec 08, 2022 7:05 pm
by Rezzimx
Node Background.
If we write in Frame Render Script:
--------------------------------------------
if (Type==0) then or
if (Type=="Solid Color") then or
if (Type.Value==0) then or
if (Type.Value=="Solid Color") then or
if (self.Type.Value=="0") then or
if (self.Type.Value=='Solid Color') then
--------------------------------------------
MotionBlur=1
end

1. Nothing works. Please make it work.
2. The default value of the Background.Gradient does not change(in macro). Please make it work.

Re: Background.Type

PostPosted: Thu Dec 08, 2022 9:11 pm
by roger.magnusson
It's my understanding that frame render scripts aren't meant to be modifying the comp. You are likely to end up with unexpected results and caching issues. The recommendation is to use expressions or modifiers instead.

I also suggest you checkout the new Fuse documentation that comes with Resolve/Fusion 18 if you want to make things like this.

Re: Background.Type

PostPosted: Thu Dec 08, 2022 9:46 pm
by Rezzimx
roger.magnusson wrote:It's my understanding that frame render scripts aren't meant to be modifying the comp. You are likely to end up with unexpected results and caching issues. The recommendation is to use expressions or modifiers instead.

I also suggest you checkout the new Fuse documentation that comes with Resolve/Fusion 18 if you want to make things like this.

Thank you, I read that documentation) But if I create a Background.fuse it will be much slower than the node, so I don't want to use fuse.