-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added DSS PATH export if the server supports it
- Loading branch information
Showing
6 changed files
with
147 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from typing import Any, Dict | ||
|
||
from bpy.props import StringProperty | ||
|
||
from sbstudio.model.file_formats import FileFormat | ||
|
||
from .base import ExportOperator | ||
|
||
__all__ = ("DSSPathExportOperator",) | ||
|
||
|
||
############################################################################# | ||
# Operator that allows the user to invoke the .dac export operation | ||
############################################################################# | ||
|
||
|
||
class DSSPathExportOperator(ExportOperator): | ||
"""Export object trajectories and light animation into DSS PATH format.""" | ||
|
||
bl_idname = "export_scene.dss_path" | ||
bl_label = "Export DSS" | ||
bl_options = {"REGISTER"} | ||
|
||
# List of file extensions that correspond to DSS PATH files | ||
filter_glob = StringProperty(default="*.zip", options={"HIDDEN"}) | ||
filename_ext = ".zip" | ||
|
||
def get_format(self) -> FileFormat: | ||
return FileFormat.DSS | ||
|
||
def get_operator_name(self) -> str: | ||
return "DSS PATH exporter" | ||
|
||
def get_settings(self) -> Dict[str, Any]: | ||
return {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters