Welcome to WSL!

Make yourself at home, but before posting, please may I ask you to read the following topics.


Posting 101
Server space, screenshots, and you

Thank you!

PS. please pretty please:


Image

Bookmarking script for your flow  [SUBMITTED]

Moderator: SecondMan

User avatar
Movalex
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 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 open bookmarks dropdown menu 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:
  • sort bookmarks by tool type and by name
  • 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
  • attempt to find renamed tools by their ID
  • cleanup orphaned bookmarks
  • quick add all Underlays to bookmarks list
Known issues:
  • Depending on complexity if the comp, the nodes in a flow may temporarily disappear from view after bookmark jump. Just move the flow and they will appear again
  • The script does not center the tool in the flow. Currently it is not possible to do programmatically.
    There's two 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)
UPD:
updated attached files to latest version 2.82

Image
Image
com.AlexBogomolov.Bookmarker.zip
Donations: https://paypal.me/aabogomolov/10usd
You do not have the required permissions to view the files attached to this post.
Last edited by Movalex on Mon May 25, 2020 12:54 am, edited 9 times in total.

User avatar
SecondMan
Site Admin
Posts: 4501
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 28
Location: Vancouver, Canada
Been thanked: 121 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
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 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!
You do not have the required permissions to view the files attached to this post.

User avatar
SecondMan
Site Admin
Posts: 4501
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 28
Location: Vancouver, Canada
Been thanked: 121 times
Contact:

Re: Bookmarking script for your flow

#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:
You do not have the required permissions to view the files attached to this post.

User avatar
Movalex
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 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! :)
You do not have the required permissions to view the files attached to this post.

User avatar
SecondMan
Site Admin
Posts: 4501
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 28
Location: Vancouver, Canada
Been thanked: 121 times
Contact:

Re: Bookmarking script for your flow

#6

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

Done :)

User avatar
Movalex
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 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
You do not have the required permissions to view the files attached to this post.

User avatar
SecondMan
Site Admin
Posts: 4501
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 28
Location: Vancouver, Canada
Been thanked: 121 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 :)

User avatar
Movalex
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 times
Contact:

Re: Bookmarking script for your flow

#9

Post by Movalex » Fri Nov 15, 2019 9:43 am

Jump script update:
  • optional move tool to bookmark (checkbox)
  • jump back and forth between current and previous bookmark
  • refactoring
https://gitlab.com/WeSuckLess/Reactor/m ... quests/112

Image

User avatar
SecondMan
Site Admin
Posts: 4501
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 28
Location: Vancouver, Canada
Been thanked: 121 times
Contact:

Re: Bookmarking script for your flow

#10

Post by SecondMan » Fri Nov 15, 2019 9:54 am

Update available in Reactor!

Thanks @Movalex :)

User avatar
Movalex
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 times
Contact:

Re: Bookmarking script for your flow

#11

Post by Movalex » Thu Feb 13, 2020 11:03 am

New update for Bookmarker:

1. add all Underlays with one button in Add Script
2. add tool ID next to a Bookmark name
3. Fix Jump Back button bug
4. Move multiple tools to Bookmark will align them vertically

Image

Image

Image

https://gitlab.com/WeSuckLess/Reactor/- ... quests/154

User avatar
SecondMan
Site Admin
Posts: 4501
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 28
Location: Vancouver, Canada
Been thanked: 121 times
Contact:

Re: Bookmarking script for your flow

#12

Post by SecondMan » Thu Feb 13, 2020 6:50 pm

Update available! :cheer:

User avatar
Movalex
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 times
Contact:

Re: Bookmarking script for your flow

#13

Post by Movalex » Wed Mar 11, 2020 7:35 am

OMG, I realized in Fusion 16.2 Blackmagic has changed the way comp.SetData works when using Python. It now assigns a list instead of dictionary!
Check it out:
  1. comp.SetData('BM.test', ['a','b','c','d'])
  2. comp.GetData('BM')
before 16.2 this will produce
{'test': {1.0: 'a', 2.0: 'b', 3.0: 'c', 4.0: 'd'}
after 16.2 it will be:
{'test': ['a', 'b', 'c', 'd']}
Ok, this looks cleaner, but... jeez, BMD, why do you hate me so much?

User avatar
SecondMan
Site Admin
Posts: 4501
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 28
Location: Vancouver, Canada
Been thanked: 121 times
Contact:

Re: Bookmarking script for your flow

#14

Post by SecondMan » Wed Mar 11, 2020 10:58 am

Movalex wrote:
Wed Mar 11, 2020 7:35 am
why do you hate me so much?
:mrgreen:

I'm sure it's nothing personal :)

User avatar
Movalex
Sir Requestalot
Posts: 242
Joined: Fri Nov 03, 2017 5:36 am
Answers: 4
Been thanked: 43 times
Contact:

Re: Bookmarking script for your flow

#15

Post by Movalex » Wed Mar 18, 2020 6:58 am

Here's updated version that will (hopefully) work in any Fusion (v9+) or Resolve (v15+) version:

https://gitlab.com/WeSuckLess/Reactor/- ... quests/159

com.AlexBogomolov.Bookmarker.zip
You do not have the required permissions to view the files attached to this post.