Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisibleSet Bookmarks #6220

Open
wants to merge 4 commits into
base: 1.5_maintenance
Choose a base branch
from

Conversation

murraystevenson
Copy link
Contributor

This adds a new Expansion menu button to the Hierarchy View that provides the ability to store the current Visible Set ( scene expansion, inclusions & exclusions ) as a named bookmark that is saved with the script. This makes it fairly straightforward to bookmark one or more common states for quick access.

visibleSetBookmarks.mp4

As these bookmarks are saved with the script, there is some cost in increased file size when bookmarking large expansions. For example, a bookmark expanding ~43,000 locations in the ALab results in an additional 860KB of data saved in the Gaffer script. Comparing this to bookmarking the same ~43,000 location expansion using an equivalent feature in a leading commercial DCC results in an ~11MB increase in their scene file, so we're not doing terribly by comparison... and if you were to instead bookmark an inclusion of the root of the ALab, that would only be a 1.3KB increase in the Gaffer script.

I've structured this a more generic Expansion menu with a Bookmarks submenu in case we want to add other expansion related actions here in the future ( collapse all, clear inclusions, etc ), though happy to refine if anyone has better ideas.

@murraystevenson murraystevenson self-assigned this Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant