Jump to: Board index » General » Fusion

Define Custom Variable/Parameter

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

purplemagic

  • Posts: 44
  • Joined: Tue Jan 05, 2021 9:23 pm
  • Real Name: Justin Lewis

Define Custom Variable/Parameter

PostSun Apr 04, 2021 8:10 pm

I have a parameter with SimpleExpression that requires a numeric variable.

The variable has a default value and can be customized by the user.

How do you define such a variable in Fusion?

An expression modifier won't work here as Number In and Point In controls are not accessible from SimpleExpression.

Declaring a variable using the multi-line technique in SimpleExpression is error-prone.

Any suggestions?
Offline

Sander de Regt

  • Posts: 2183
  • Joined: Thu Nov 13, 2014 10:09 pm

Re: Define Custom Variable/Parameter

PostSun Apr 04, 2021 8:55 pm

What kind of expression is in the Simple Expression? Sometimes it's enough to add a custom control to your tool and reference that in your expression, but it depends on the complexity.
Sander de Regt

ShadowMaker SdR
The Netherlands
Offline

purplemagic

  • Posts: 44
  • Joined: Tue Jan 05, 2021 9:23 pm
  • Real Name: Justin Lewis

Re: Define Custom Variable/Parameter

PostSun Apr 04, 2021 9:11 pm

Sander de Regt wrote:What kind of expression is in the Simple Expression? Sometimes it's enough to add a custom control to your tool and reference that in your expression, but it depends on the complexity.


The custom variable is just an integer.

What custom control do people normally use to define a variable? Do you have an example?

Thanks.
Offline

UserNoah

  • Posts: 244
  • Joined: Fri Oct 04, 2019 3:32 pm
  • Location: Berlin
  • Real Name: Noah Hähnel

Re: Define Custom Variable/Parameter

PostMon Apr 05, 2021 6:56 am

It's as easy as right clicking a node a selecting Edit Controls.
But I've also made a post about this some time ago: https://noahhaehnel.com/blog/fusion-quicktip-001/
Offline

purplemagic

  • Posts: 44
  • Joined: Tue Jan 05, 2021 9:23 pm
  • Real Name: Justin Lewis

Re: Define Custom Variable/Parameter

PostTue Apr 06, 2021 6:13 pm

UserNoah wrote:It's as easy as right clicking a node a selecting Edit Controls.
But I've also made a post about this some time ago: https://noahhaehnel.com/blog/fusion-quicktip-001/

Thank you! Didn't know about User Controls.

Return to Fusion

Who is online

Users browsing this forum: Bing [Bot] and 8 guests