-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
10 changed files
with
47 additions
and
3 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
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,4 @@ | ||
from .core import IHost | ||
|
||
|
||
__all__ = ("IHost",) |
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,39 @@ | ||
from __future__ import annotations | ||
|
||
import pathlib | ||
import pymel.core as pm_core | ||
import pymel.core.nodetypes as pm_ntypes | ||
|
||
from .. import core | ||
from pymel import versions | ||
|
||
|
||
class IHost(core.IHost): | ||
|
||
@property | ||
def name(self) -> str: | ||
return "maya" | ||
|
||
@property | ||
def api_name(self) -> str: | ||
return "pymaya" | ||
|
||
def _get_version_number(self) -> str: | ||
version_number = str(versions.current())[:4] | ||
return version_number | ||
|
||
def get_current_file_path(self) -> pathlib.Path: | ||
scene_name = pm_core.sceneName() | ||
if not scene_name: | ||
raise RuntimeError("File is not saved!") | ||
|
||
return pathlib.Path(scene_name) | ||
|
||
def get_selection(self) -> tuple[pm_ntypes.DagNode, ...]: | ||
return tuple(pm_core.ls(selection=True)) | ||
|
||
def get_node_name(self, node: pm_ntypes.DagNode) -> str: | ||
return node.name(stripNamespace=True) | ||
|
||
def get_node_handle(self, node: pm_ntypes.DagNode) -> str: | ||
return node.longName() |
Binary file removed
BIN
-257 KB
PYProjects/skin_plus_plus/dccs/maya/skin_plus_plus_pymaya_2024/skin_plus_plus_pymaya.pyd
Binary file not shown.
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