Jump to: Board index » General » Fusion

Create hotkeys for Center, Scale, Angle and Blend.

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

bentheanimator

  • Posts: 454
  • Joined: Mon May 13, 2019 10:38 pm
  • Location: Minneapolis, MN
  • Real Name: Ben Hall

Create hotkeys for Center, Scale, Angle and Blend.

PostFri May 17, 2019 3:49 pm

So in After Effects and Maya there are shortcuts to insert a key for various things like position and rotation. I've looked through the hotkeys available but can't find a way to insert a key in a particular tool like Transform. I just found the Fusion 8 Scripting Guide and have started to grok that but was hoping I'm recreating the wheel here. Can somebody point me in the right direction? If there is not hotkey combo, can a macro be made that can then be attached to a hotkey?
Resolve & Fusion Studio 18.6.5
Windows 10
Intel Xeon CPU 2699A @ 2.40GHz | 128GB RAM | 2xRTX3090 | 512NVME System | 8TB NMVE Scratch | 80TB 8Gbps Fiber

MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch
Offline
User avatar

Bryan Ray

  • Posts: 2488
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Create hotkeys for Center, Scale, Angle and Blend.

PostFri May 17, 2019 8:46 pm

First, the term 'macro' has a different meaning in Fusion than in some other software. In Fusion, it's a collection of tools that are grouped and given a custom control panel. So a macro appears as a node in the Flow.

It should certainly be possible to create a script that does what you describe, and a script can be run from a hotkey.

Code: Select all
tool = comp.ActiveTool
keyframe = { [comp.CurrentTime] = { tool.Angle[comp.CurrentTime], }, }

splineout = tool.Angle:GetConnectedOutput()
spline = splineout:GetTool()

spline:SetKeyFrames(keyframe)


The above sets a keyframe on the active tool's Angle control.

You'd probably want to do a little more testing to be sure the tool has an Angle control, and to create an animation spline if one doesn't already exist.

edit: The above adapted from the info on pages 83-84 of the Fusion 8 Scripting Guide.
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

bentheanimator

  • Posts: 454
  • Joined: Mon May 13, 2019 10:38 pm
  • Location: Minneapolis, MN
  • Real Name: Ben Hall

Re: Create hotkeys for Center, Scale, Angle and Blend.

PostSat May 18, 2019 2:37 am

Thanks for this!

I'll throw together a something that checks for a spline and creates one if not present? I've been reading that section and it seems like you have to create a spline first before adding a keyframe. I'll bang at it and get something working then post it to WSL.
Resolve & Fusion Studio 18.6.5
Windows 10
Intel Xeon CPU 2699A @ 2.40GHz | 128GB RAM | 2xRTX3090 | 512NVME System | 8TB NMVE Scratch | 80TB 8Gbps Fiber

MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch

Return to Fusion

Who is online

Users browsing this forum: No registered users and 15 guests