Bookmarking script for your flow  [SUBMITTED]

Moderator: SecondMan

User avatar
Movalex
Fusioneer
Posts: 108
Joined: Fri Nov 03, 2017 5:36 am
Answers: 2
Been thanked: 22 times
Contact:

Bookmarking script for your flow

#1

Post by Movalex » Mon Feb 18, 2019 10:06 am

Bookmark selected or active tool.

Set custom bookmark name or use default tool's name.
Then invoke jump script and switch instantly to the desired node in your huge comp.
Use SHIFT+A to add bookmark and SHIFT+J to jump between bookmarks.
Windows users can additionally jump with DOWN/UP or open bookmarks dropdown with ALT+DOWN
Bookmarks are stored in comp metadata, so they will remain after Fusion restart.
The script requires 64-bit Python (v2.7 or v3.6). Suggestions and PR's are appreciated.

Features:
  • bookmarks are sorted alphabetically
  • delete single bookmark or reset all
  • submit bookmark addition on Enter
  • close window on ESC
  • flow scaling is preserved for each bookmark
  • rename bookmark (just add the same tool with different name)
  • refresh bookmarks list if some was added while Jump UI is still running
  • add a bookmark button in Jump UI
  • do not switch to first bookmark on launch
Known issues:
  • Depending on complexity if the comp, the nodes in a flow may temporarily disappear from view after bookmark jump. As a workaround to this issue added 0.1 sec delay before jump to the tool. Hope it works for you :)
  • the script just finds a tool in a flow and makes it active. It does not center it in the flow.
    There's two possible workarounds here:
    • after jumping to the tool, click on the flow, then press CTRL+F (or CMD+F) and hit ENTER (recommended)
    • use a PipeRouter hackaround (see commented section in a jump script and this post)
TODO: add all Underlays as bookmarks with single button click (?)

Image

Image
Attachments
com.AlexBogomolov.Boomarker.zip
(16.13 KiB) Downloaded 7 times
Last edited by Movalex on Mon Feb 18, 2019 12:49 pm, edited 3 times in total.

User avatar
SecondMan
Site Admin
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 3
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: Bookmarking script for your flow

#2

Post by SecondMan » Mon Feb 18, 2019 11:45 am

Great to see this one submitted @Movalex! :cheer:

There are two small issues with your Atom file.

There is a closing quotation mark missing in Category = "Tools/Flow,. Always a good idea to load a finished Atom in Atomizer for a final QC check. Even when it was created using Atomizer...

And annoyingly, the Reactor description window can render HTML "a href" links but the links are not clickable, which is very confusing, not to mention terribly frustrating for the relentlessly clicking end user...

Apparently this is a QT window manager limitation that is passed down to Fusion's UI Manager and unlikely to change. It's a known issue but we have yet to figure out something elegant around that for Reactor. Feel free to offer ideas.

Best to keep links in plain text at the moment, for copy/pasting...

User avatar
Movalex
Fusioneer
Posts: 108
Joined: Fri Nov 03, 2017 5:36 am
Answers: 2
Been thanked: 22 times
Contact:

Re: Bookmarking script for your flow

#3

Post by Movalex » Mon Feb 18, 2019 12:20 pm

Fixed that, thanks!
I also realized it has to be in a 'Scripts/Comp' category, not 'Tool'.

UPD: fixed nasty typo, new file here. Sorry!
Attachments
com.AlexBogomolov.Boomarker.zip
(16.13 KiB) Downloaded 2 times

User avatar
SecondMan
Site Admin
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 3
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: Bookmarking script for your flow  [SUBMITTED]

#4

Post by SecondMan » Mon Feb 18, 2019 1:42 pm

Submitted (minus all the Mac junk)! :)

I was a little too hasty with deploying, so I had to quickly fix the references to GIT: and replace them with Reactor:Deploy/. All is working fine now!

Attached a corrected zip file if you want to double check it...

Congrats on your first Reactor deployment! :cheer:
Attachments
com.AlexBogomolov.Bookmarker.zip
(9.4 KiB) Downloaded 11 times

User avatar
Movalex
Fusioneer
Posts: 108
Joined: Fri Nov 03, 2017 5:36 am
Answers: 2
Been thanked: 22 times
Contact:

Re: Bookmarking script for your flow

#5

Post by Movalex » Mon Feb 18, 2019 2:08 pm

Oh, I completely forgot to fix git references, thanks!
Checked the script, everything works fine. Except me being a greedy pirate wants to have donations, and paypal.me link shows with zero sum.
Changed the atom with correct link! :)
Attachments
com.AlexBogomolov.Bookmarker.atom
(2.38 KiB) Downloaded 7 times

User avatar
SecondMan
Site Admin
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 3
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: Bookmarking script for your flow

#6

Post by SecondMan » Mon Feb 18, 2019 2:47 pm

Done :)

User avatar
Movalex
Fusioneer
Posts: 108
Joined: Fri Nov 03, 2017 5:36 am
Answers: 2
Been thanked: 22 times
Contact:

Re: Bookmarking script for your flow

#7

Post by Movalex » Thu Mar 21, 2019 3:47 am

[UPDATE]
In version 2.4 you can move a single tool to bookmark position.
Works with one selected (not active) tool.

Here's an illustration:
Image

Gitlab PR:
https://gitlab.com/WeSuckLess/Reactor/merge_requests/61
Attachments
com.AlexBogomolov.Bookmarker.zip
(16.72 KiB) Downloaded 11 times

User avatar
SecondMan
Site Admin
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 3
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

Re: Bookmarking script for your flow

#8

Post by SecondMan » Thu Mar 21, 2019 10:49 am

Thanks for the update! Submitted and available now :)