-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bin Display Modes/Mask #14
Comments
Thanks for documenting this! Would adding some helper properties for these to the |
Yes I think so! In a recent script, I used a couple of enums for this; although I'm not sure this is too helpful to you, considering your efforts to maintain compatibility with older versions of python and such :) class ViewModes(enum.IntEnum):
"""Avid Bin View Modes"""
LIST = 0
FRAME = 1
SCRIPT = 2
class BinDisplays(enum.IntFlag):
"""Types of data to display in the bin (from Set Bin Display... dialog)"""
MASTER_CLIPS = 0b00000000000000001
SUBCLIPS = 0b00000000000000010
SEQUENCES = 0b00000000000000100
SOURCES = 0b00000000000001000
EFFECTS = 0b00000000000010000
GROUPS = 0b00000000000100000
PRECOMP_RENDERED_EFFECTS = 0b00000000001000000
MOTION_EFFECTS = 0b00000000010000000
SHOW_CLIPS_CREATED_BY_USER = 0b00000001000000000
SHOW_REFERENCE_CLIPS = 0b00000010000000000
PRECOMP_TITLES_MATTEKEYS = 0b00000100000000000
STEREOSCOPIC_CLIPS = 0b01000000000000000
LINKED_MASTER_CLIPS = 0b10000000000000000 |
Not really an issue, but I thought it might be good to document this somewhere since I've been working with it. I've been tracking down the values used for
avb.bin.Bin
'sdisplay_mode
anddisplay_mask
properties. They are below:Known values for
avb.bin.Bin.display_mode
:In Avid, this is set by choosing one of the mode buttons next to the Bin View dropdown.
0
1
2
Known flags for
avb.bin.Bin.display_mask
:In Avid, this is set by right-clicking in the bin and choosing Set Bin Display...
Note there are some flags missing. Not sure if they're deprecated, reserved, or found elsewhere.
00000000000000001
00000000000000010
00000000000000100
00000000000001000
00000000000010000
00000000000100000
00000000001000000
00000000010000000
00000001000000000
00000010000000000
00000100000000000
01000000000000000
10000000000000000
The text was updated successfully, but these errors were encountered: