- Mirror Selected (animation):
- no description
This file contains hidden or 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
| def load_hik_animation_into_current_character(source_file_path=None, character=None): | |
| if not source_file_path: | |
| source_file_path = cmds.fileDialog2( | |
| fileFilter="Scene Files (*.ma *.mb *.fbx);;Maya ASCII (*.ma);;Maya Binary (*.mb);;Fbx file(*.fbx)", | |
| fileMode=1, | |
| caption="Select animation source file.", | |
| ) | |
| if not source_file_path: |
This file contains hidden or 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
| """Module for edge ring/loop walking and selection and reconstruction of subdivision surfaces in Maya.""" | |
| import re | |
| import struct | |
| import zlib | |
| from typing import Callable, Optional, Union | |
| import maya.api.OpenMaya as om | |
| import maya.cmds as cmds | |
| import maya.mel as mel |
This file contains hidden or 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
| // mel | |
| proc doToggleAnimCurveIsolation(string $outliner, string $ed) | |
| // C:/Program Files/Autodesk/Maya2016.5/scripts/others/isolateAnimCurve.mel 参照 | |
| { | |
| global int $gUnisolateJobNum; | |
| if ($gUnisolateJobNum > 0) { |
This file contains hidden or 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
| def select_layer(layer_name, add=False): | |
| # type: (Text, bool) -> None | |
| if not add: | |
| for layer in get_all_layers(): | |
| deselect_layer(layer) | |
| if "BaseAnimation" == layer_name: | |
| layer_name = next((x for x in get_all_layers() if "BaseAnimation" in x), layer_name) |
This file contains hidden or 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
| import maya.cmds as cmds | |
| import maya.mel as mel | |
| DEFAULT_MAXIMUM_INFULENCE = 5 | |
| ############################################################################## | |
| #1頂点に影響するジョイントの上限チェックする | |
| ############################################################################## | |
| def check_maximum_influence(max=DEFAULT_MAXIMUM_INFULENCE): | |
| res = [] |
This file contains hidden or 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
| # -*- coding: UTF-8 -*- | |
| # ====================================================================== | |
| import os | |
| from maya import cmds | |
| from maya import mel | |
| if False: | |
| # For type annotation | |
| from typing import Dict, List, Tuple, Pattern, Callable, Any, Text # NOQA |
This file contains hidden or 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
| # pylint: disable=C0326,W0125,line-too-long | |
| """The typeshed generator for `maya.cmds` module from CommandsPython html pages. | |
| Usage: | |
| Download the documentation files from [ADN](https://knowledge.autodesk.com/support/maya/getting-started/caas/simplecontent/content/maya-documentation.html) | |
| Run this script. | |
| `$ python generate_typeshed.py inupt_folder output ' | |
| `$ python generate_typeshed.py autodesk-maya-user-guide-2020.1.htm-ade-2.1.enu/CommandsPython maya.cmds.__init__.pyi' | |
| """ |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| ############################################################################### | |
| import sys | |
| import textwrap | |
| import maya.cmds as cmds | |
| import maya.mel as mel | |
| import maya.api.OpenMayaUI as omui | |
| # import gml_maya.decorator as deco |
NewerOlder