work: restore shift+spacebar for media play/pause
maybe put in maya config? idk what funiman's preference is
This commit is contained in:
@@ -5,7 +5,7 @@ from pathlib import Path
|
||||
|
||||
import bpy
|
||||
|
||||
from . import projects, manager_info
|
||||
from . import manager_info, projects
|
||||
|
||||
|
||||
def discard_flamenco_client(context):
|
||||
@@ -65,16 +65,6 @@ class FlamencoPreferences(bpy.types.AddonPreferences):
|
||||
items=_project_finder_enum_items,
|
||||
)
|
||||
|
||||
bat_bypass: bpy.props.BoolProperty( # type: ignore
|
||||
name="Bypass BAT",
|
||||
description=(
|
||||
"When enabled, submission skips Blender Asset Tracer: paths in the blend "
|
||||
"are written as absolute, then the blend is uploaded or copied without a BAT pack. "
|
||||
"When disabled, Flamenco uses the normal BAT pack (Shaman or job storage)"
|
||||
),
|
||||
default=True,
|
||||
)
|
||||
|
||||
# Property that gets its value from the above _job_storage, and cannot be
|
||||
# set. This makes it read-only in the GUI.
|
||||
job_storage_for_gui: bpy.props.StringProperty( # type: ignore
|
||||
@@ -86,6 +76,21 @@ class FlamencoPreferences(bpy.types.AddonPreferences):
|
||||
get=lambda prefs: prefs._job_storage(),
|
||||
)
|
||||
|
||||
use_relative_only: bpy.props.BoolProperty( # type: ignore
|
||||
name="Relative Paths Only",
|
||||
default=True,
|
||||
description="When sending files to Flamenco, only include assets that are referenced by "
|
||||
"relative path. Absolute paths are then assumed to be valid on all Workers. When turned "
|
||||
"off, all files are sent, regardless of how they are referenced",
|
||||
)
|
||||
exclusion_filter: bpy.props.StringProperty( # type: ignore
|
||||
name="Exclusion Filter",
|
||||
default="",
|
||||
description="Space-separated list of file glob patterns. When sending files to Flamenco, "
|
||||
"exclude any file that matches a pattern in this list. For example: '*.abc *.vdb' to skip "
|
||||
"copying all Alembic and OpenVDB files",
|
||||
)
|
||||
|
||||
def draw(self, context: bpy.types.Context) -> None:
|
||||
layout = self.layout
|
||||
layout.use_property_decorate = False
|
||||
@@ -128,9 +133,9 @@ class FlamencoPreferences(bpy.types.AddonPreferences):
|
||||
else:
|
||||
text_row(col, str(project_root))
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.label(text="Submission")
|
||||
col.prop(self, "bat_bypass")
|
||||
col = layout.column(heading="File Submission")
|
||||
col.prop(self, "use_relative_only")
|
||||
col.prop(self, "exclusion_filter")
|
||||
|
||||
def project_root(self) -> Path:
|
||||
"""Use the configured project finder to find the project root directory."""
|
||||
@@ -150,13 +155,17 @@ class FlamencoPreferences(bpy.types.AddonPreferences):
|
||||
return "Unknown, refresh first."
|
||||
return str(info.shared_storage.location)
|
||||
|
||||
def ignore_globs(self) -> set[str]:
|
||||
"""Return exclusion filter as set of strings."""
|
||||
return set(self.exclusion_filter.strip().split())
|
||||
|
||||
|
||||
def get(context: bpy.types.Context) -> FlamencoPreferences:
|
||||
"""Return the add-on preferences."""
|
||||
prefs = context.preferences.addons["flamenco"].preferences
|
||||
assert isinstance(
|
||||
prefs, FlamencoPreferences
|
||||
), "Expected FlamencoPreferences, got %s instead" % (type(prefs))
|
||||
assert isinstance(prefs, FlamencoPreferences), (
|
||||
"Expected FlamencoPreferences, got %s instead" % (type(prefs))
|
||||
)
|
||||
return prefs
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user