Page 1 of 1

Hotkey for disabling Nodes

PostPosted: Thu Feb 26, 2015 6:11 pm
by Lucas Pfaff
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? :)

Re: Hotkey for disabling Nodes

PostPosted: Thu Feb 26, 2015 11:22 pm
by Stefan Ihringer
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.

Re: Hotkey for disabling Nodes

PostPosted: Sat Feb 28, 2015 11:46 am
by Lucas Pfaff
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

Re: Hotkey for disabling Nodes

PostPosted: Sun Mar 01, 2015 8:36 pm
by Stefan Ihringer
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 :-)

Re: Hotkey for disabling Nodes

PostPosted: Mon Mar 02, 2015 4:53 pm
by Johnny Farmfield
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.

Re: Hotkey for disabling Nodes

PostPosted: Mon Mar 02, 2015 8:14 pm
by Stefan Ihringer
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)",
    },
}

Re: Hotkey for disabling Nodes

PostPosted: Mon Mar 02, 2015 9:20 pm
by Lucas Pfaff
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 :)

Re: Hotkey for disabling Nodes

PostPosted: Tue Mar 03, 2015 3:07 pm
by Johnny Farmfield
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.

Re: Hotkey for disabling Nodes

PostPosted: Mon Dec 19, 2016 9:12 pm
by Frank Feijen
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...

Re: Hotkey for disabling Nodes

PostPosted: Tue Dec 20, 2016 7:58 am
by michael vorberg
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

Re: Hotkey for disabling Nodes

PostPosted: Mon Apr 25, 2022 4:08 am
by acasonj
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 :(