Jump to: Board index » General » Fusion

Hotkey for disabling Nodes

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

Lucas Pfaff

  • Posts: 304
  • Joined: Mon Dec 03, 2012 3:35 pm

Hotkey for disabling Nodes

PostThu Feb 26, 2015 6:11 pm

Hi there,

somehow the default hotkey for disabling Nodes, CTRL+P, isn't really handy for me.
So I wanted to change it to D ("disable"), simple as that I went to the Fusion.hotkeys file and tried to change that. However, that doesn't really worked out.

The default Shortcut is under the "View" controls; first I tried to simply change it there to D, but then it only works when I have the viewer selected, not when I'm in the flow or else. The default shortcut CTRL+P works everywhere.

I tried to add it to "Frame" and "Flow controls, but that doesn't work out either. Only when the Viewport is selected.
I used this string:

Code: Select all
D = "self:DisableCurrentTools()",


Any idea how I can fix that? :)
Offline
User avatar

Stefan Ihringer

  • Posts: 257
  • Joined: Mon Nov 10, 2014 10:40 pm

Re: Hotkey for disabling Nodes

PostThu Feb 26, 2015 11:22 pm

You need more than one definition of D:

Code: Select all
{
   View = {
      CONTROL_P = "self:DisableCurrentTools()",
      D = "self:DisableCurrentTools()",
   },
   Flow = {
      D = "self:Composition():DisableSelectedTools()",
   },
}


The trick is that "self" always refers to the part of the window that the hotkey is defined for. The flow view (and the frame object) don't have a DisableSelectedTools() method. But the viewer and the composition have one.
blog and Fusion stuff: http://comp-fu.com/2012/06/fusion-script-macro-collection/
Offline

Lucas Pfaff

  • Posts: 304
  • Joined: Mon Dec 03, 2012 3:35 pm

Re: Hotkey for disabling Nodes

PostSat Feb 28, 2015 11:46 am

Hi Stefan,

thank you very much - again :)
Works like a charm! :)

Allow me one last question towards this though. When trying this out, I saw it doesn't work when I'm "inside" the tool. When I changed the value of a bblur for example, D doesn't work; CTRL P does. I assume I just have to add the code in another place too, but I can't figure which.
However, is this actually smart? I could imagine I get issues when trying to write something in that location
I already encountered that I can't use the left and right arrows in text anymore, as I assigned them to step one frame forward/backward in the Frame = { :D
Offline
User avatar

Stefan Ihringer

  • Posts: 257
  • Joined: Mon Nov 10, 2014 10:40 pm

Re: Hotkey for disabling Nodes

PostSun Mar 01, 2015 8:36 pm

Does putting D into the "Controls" section work?

I don't know if that screws up typing in text widgets. Fusion's text widgets are weird at times. A lot was fixed in 7.0 but in 6.4 there were multiple weird things like "shift-space" (hit by accident when typing quickly) would start playing the comp backwards or curly brackets not working in some text inputs. So... give it a try and see what happens :-)
blog and Fusion stuff: http://comp-fu.com/2012/06/fusion-script-macro-collection/
Offline
User avatar

Johnny Farmfield

  • Posts: 190
  • Joined: Tue Feb 10, 2015 8:26 am
  • Location: Goteborg - Sweden

Re: Hotkey for disabling Nodes

PostMon Mar 02, 2015 4:53 pm

D for disabling nodes is great, but is it also possible to change the 3D orbit/pan/zoom key combos?

I would love to remap them to ALT+RMB to orbit, ALT+MMB to pan and ALT+scroll for zooming, as in Houdini (and Nuke). Using double mouse buttons as I do now is a bit clunky, imo.
*** Pushing pixels, vectors and voxels since 25 years - www.farmfield-vfx.com ***
Offline
User avatar

Stefan Ihringer

  • Posts: 257
  • Joined: Mon Nov 10, 2014 10:40 pm

Re: Hotkey for disabling Nodes

PostMon Mar 02, 2015 8:14 pm

Not that I know of. But you don't have to use double mouse buttons. I'm not in front of fusion right now so I I'm not sure if I'm telling the truth (it's all muscle memory...) but I think it's alt and ctrl + middle mouse button. Ctrl + mouse wheel to dolly back (not smoothly though).

Yeah, single letter hotkeys are cooler if you don't want to let go of your mouse all the time... Adding flow hotkeys to add tools is another helpful feature:

Code: Select all
{
    Flow = {
        -- create blur tool when "B" is pressed.
        -- "true" loads user-defined tool defaults, -32768 causes auto-placement
        -- "t =" was a work-around for a crash. Might be unnecessary in Fusion 7.
        B = "t = self:Composition():AddTool('Blur', true, -32768, -32768)",
    },
}
blog and Fusion stuff: http://comp-fu.com/2012/06/fusion-script-macro-collection/
Offline

Lucas Pfaff

  • Posts: 304
  • Joined: Mon Dec 03, 2012 3:35 pm

Re: Hotkey for disabling Nodes

PostMon Mar 02, 2015 9:20 pm

Hi Stefan,

I give it a go in the "Controls" section. I just noticed that arrows won't work properly anymore; don't know for text tools, but in the Custom Tool I'm not able to use them anymore, only shift/ctrl+arrow will work to jump words. A bit annoying but usually I don't write there much anyway :)

Yeah, single letter hotkeys are cooler if you don't want to let go of your mouse all the time... Adding flow hotkeys to add tools is another helpful feature:

My biggest problem was that there were virtually no hotkeys to create nodes (that I know of, at least). I found your post on pigscanfly regarding creating nodes with hotkeys, and configured my most important ones (b, k, c, p, o, m, t in Nuke eqivs). Working is now a bigger blast, thank you again :)
Offline
User avatar

Johnny Farmfield

  • Posts: 190
  • Joined: Tue Feb 10, 2015 8:26 am
  • Location: Goteborg - Sweden

Re: Hotkey for disabling Nodes

PostTue Mar 03, 2015 3:07 pm

Stefan Ihringer wrote:Not that I know of. But you don't have to use double mouse buttons. I'm not in front of fusion right now so I I'm not sure if I'm telling the truth (it's all muscle memory...) but I think it's alt and ctrl + middle mouse button. Ctrl + mouse wheel to dolly back (not smoothly though).

Oh, I know the keys+mouse commands for orbit, pan, etc, but being in Houdini and Nuke with the same keys it's just annoying not being able to set those in Fusion too - that's why I keep to using double mouse buttons in Fusion, for some reason it's easier for me than using the ctrl/shift combo's.

I really hope they implement a way to set this as you like it.
*** Pushing pixels, vectors and voxels since 25 years - www.farmfield-vfx.com ***
Offline

Frank Feijen

  • Posts: 172
  • Joined: Tue Dec 13, 2016 10:04 am
  • Location: Vilvoorde, Belgium

Re: Hotkey for disabling Nodes

PostMon Dec 19, 2016 9:12 pm

Just wondering out loud: why hasn't anyone come up with a Autohotkey-script that makes the mousebehaviour anyway you'd like?
I sure wish I was savvy enough to get it to work more like c4d for example...
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: Hotkey for disabling Nodes

PostTue Dec 20, 2016 7:58 am

currently you cant change all input controls. you can only create scripts which execute certain functions and set them to hotkeys. controls for paning, zooming, dolly, ... are not scriptable
Offline

acasonj

  • Posts: 43
  • Joined: Wed Jan 23, 2019 4:13 am
  • Location: Australia
  • Real Name: Joshua Acason

Re: Hotkey for disabling Nodes

PostMon Apr 25, 2022 4:08 am

It's mind boggling that Resolve has different "disable the thing I've selected" shortcuts for clips, nodes in fusion and nodes in colour.. the shortcuts are so unintuitive :(
Builder / Creator
@JoshFromPerth
B.CompSci Ma. Networking

Return to Fusion

Who is online

Users browsing this forum: No registered users and 43 guests