## Bookmarking script for your flow [SUBMITTED]

Moderator: SecondMan

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

### Bookmarking script for your flow

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 (?)

Attachments
com.AlexBogomolov.Boomarker.zip
Last edited by Movalex on Mon Feb 18, 2019 12:49 pm, edited 3 times in total.

SecondMan
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 78 times
Contact:

### Re: Bookmarking script for your flow

Great to see this one submitted @Movalex!

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...

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

### Re: Bookmarking script for your flow

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

SecondMan
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 78 times
Contact:

### Re: Bookmarking script for your flow  [SUBMITTED]

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!
Attachments
com.AlexBogomolov.Bookmarker.zip

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

### Re: Bookmarking script for your flow

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

SecondMan
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 78 times
Contact:

### Re: Bookmarking script for your flow

Done

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

### Re: Bookmarking script for your flow

[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:

Gitlab PR:
https://gitlab.com/WeSuckLess/Reactor/merge_requests/61
Attachments
com.AlexBogomolov.Bookmarker.zip