-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01efe3d
commit d59502a
Showing
13 changed files
with
156 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Element reader for Gaffer ingest module""" | ||
|
||
from pathlib import Path | ||
|
||
import GafferScene | ||
|
||
from tik_manager4.dcc.gaffer import gaffer_menu | ||
|
||
from tik_manager4.dcc.ingest_core import IngestCore | ||
|
||
class Reader(IngestCore): | ||
"""Ingest elements.""" | ||
|
||
nice_name = "Reader" | ||
valid_extensions = [".abc", ".lscc", ".scc", ".usd", ".usda", ".usdc", ".usdz", ".vdb"] | ||
referencable = False | ||
|
||
def __init__(self): | ||
super(Reader, self).__init__() | ||
self.gaffer = gaffer_menu.GafferMenu() | ||
def _bring_in_default(self): | ||
"""Import various file types.""" | ||
reader_node = GafferScene.SceneReader() | ||
self.gaffer.script.addChild(reader_node) | ||
reader_node["fileName"].setValue(Path(self.ingest_path).as_posix()) |
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 |
---|---|---|
@@ -1 +1,13 @@ | ||
Tik Manager 4 <template_dcc_name> Installation Guide | ||
Gaffer Integration | ||
================== | ||
|
||
1. Locate the ``startup\gui`` folder inside gaffer installation folder. | ||
|
||
2. Find the ``tik_4_init.py`` file in the ``tik_manager4/dcc/gaffer/setup`` folder and copy it to the Gaffer ``startup\gui`` scripts folder. | ||
|
||
3. Open the copied ``tik_4_init.py`` with a text editor and replace the ``PATH\\TO\\PARENT\\FOLDER\\OF\\TIKMANAGER4\\`` with the extracted parent of the tik_manager4 folder. | ||
|
||
.. attention:: | ||
The Path MUST be the parent of the tik_manager4 folder. If you extracted the contents directly from the zip file it will be something like ``tik_manager4-4.0.7-beta``. | ||
|
||
4. Open Gaffer and you should see the Tik Manager menu in the top menu bar. |
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,37 @@ | ||
# Tik Manager 4 [Start] | ||
import sys | ||
tik_path = 'PATH\\TO\\PARENT\\FOLDER\\OF\\TIKMANAGER4\\' | ||
if not tik_path in sys.path: | ||
sys.path.append(tik_path) | ||
# Tik Manager 4 [End] | ||
|
||
import Gaffer | ||
import GafferUI | ||
import GafferScene | ||
|
||
import tik_manager4 | ||
INIT = tik_manager4.initialize("Gaffer") | ||
|
||
from tik_manager4.ui import main | ||
from tik_manager4.dcc.gaffer.gaffer_menu import GafferMenu | ||
|
||
def __main_ui(menu): | ||
_gaffer_menu = GafferMenu | ||
GafferMenu.set_menu(menu) | ||
main.launch(dcc="Gaffer") | ||
|
||
def __new_version(menu): | ||
_gaffer_menu = GafferMenu | ||
GafferMenu.set_menu(menu) | ||
tui = main.launch("Gaffer", dont_show=True) | ||
tui.on_new_version() | ||
|
||
def __publish(menu): | ||
_gaffer_menu = GafferMenu | ||
GafferMenu.set_menu(menu) | ||
tui = main.launch("Mari", dont_show=True) | ||
tui.on_publish_scene() | ||
|
||
GafferUI.ScriptWindow.menuDefinition(application).append( "/TikManager/Main UI", { "command" : __main_ui } ) | ||
GafferUI.ScriptWindow.menuDefinition(application).append( "/TikManager/New Version", { "command" : __new_version } ) | ||
GafferUI.ScriptWindow.menuDefinition(application).append( "/TikManager/Publish", { "command" : __publish } ) |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.