-
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.
Added initial support for getting and setting skin data by sub set of…
… vertex ids
- Loading branch information
Showing
10 changed files
with
267 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
from pymel.core import nodetypes as pm_ntypes | ||
from pymxs import runtime as mxrt | ||
from typing import Callable | ||
from typing import TypeVar | ||
from typing import Union | ||
|
||
from . import SkinData | ||
|
||
T_Node = TypeVar("T_Node", mxrt.Node, pm_ntypes.DagNode) | ||
T_Handle = Union[int, str] | ||
T_CExSD = Callable[[T_Handle], SkinData] | ||
T_CApSD = Callable[[T_Handle, SkinData], None] | ||
from __future__ import annotations | ||
|
||
_typing = False | ||
if _typing: | ||
from pymel.core import nodetypes as pm_ntypes | ||
from pymxs import runtime as mxrt | ||
from typing import Callable | ||
from typing import Sequence | ||
from typing import TypeVar | ||
from typing import Union | ||
from typing import Protocol | ||
|
||
from . import SkinData | ||
|
||
T_Node = TypeVar("T_Node", mxrt.Node, pm_ntypes.DagNode) | ||
T_Handle = Union[int, str] | ||
T_CApSD = Callable[[T_Handle, SkinData], None] | ||
|
||
|
||
class T_EXSD(Protocol): | ||
""" | ||
Signature for extrac skin data function | ||
""" | ||
def __call__(self, handle: T_Handle, vertex_ids: Sequence[int] | None = None) -> SkinData: ... | ||
|
||
del _typing |
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 modified
BIN
+10 KB
(100%)
PYProjects/skin_plus_plus/dccs/max/2024/skin_plus_plus_pymxs.pyd
Binary file not shown.
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
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
Oops, something went wrong.