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
from .. import qt | |
class Node(): | |
def __init__(self, name=""): | |
self.name = name | |
self.length = len(name) | |
class TreeNode(qt.QTreeWidgetItem): | |
def __init__(self, parent:qt.QTreeWidgetItem=None, data:Node=None) -> None: |
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
#include <maya/MFnPlugin.h> | |
#include <maya/MPxNode.h> | |
#include <maya/MFnMatrixAttribute.h> | |
#include <maya/MFnNumericAttribute.h> | |
#include <maya/MFnCompoundAttribute.h> | |
#include <maya/MTransformationMatrix.h> | |
#include <maya/MQuaternion.h> | |
#include <maya/MVector.h> | |
#include <maya/MArrayDataHandle.h> | |
#include <maya/MMatrix.h> |
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.api.OpenMaya as om2 | |
def maya_useNewAPI(): | |
pass | |
class spaceMatrix(om2.MPxNode): | |
id_ = om2.MTypeId(0x00124dee) | |
def __init__(self) -> None: |
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
#include <maya/MPxNode.h> | |
#include <maya/MFnNumericAttribute.h> | |
#include <maya/MFnTypedAttribute.h> | |
#include <maya/MFnMatrixAttribute.h> | |
#include <maya/MFnNurbsCurve.h> | |
#include <maya/MFnNurbsCurveData.h> | |
#include <maya/MTransformationMatrix.h> | |
#include <maya/MArrayDataHandle.h> | |
#include <maya/MPointArray.h> | |
#include <maya/MGlobal.h> |
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.api.OpenMaya as om2 | |
def maya_useNewAPI(): | |
pass | |
class curveConstraint(om2.MPxNode): | |
id_ = om2.MTypeId(0x00124ddf) |
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
#include <maya/MPxNode.h> | |
#include <maya/MFnMatrixAttribute.h> | |
#include <maya/MFnUnitAttribute.h> | |
#include <maya/MFnNumericAttribute.h> | |
#include <maya/MFnEnumAttribute.h> | |
#include <maya/MTransformationMatrix.h> | |
#include <maya/MGlobal.h> | |
#include <maya/MQuaternion.h> | |
#include <maya/MMatrix.h> | |
#include <maya/MFnPlugin.h> |
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.api.OpenMaya as om2 | |
def maya_useNewAPI(): | |
pass | |
class parentJointMatrix(om2.MPxNode): | |
id_ = om2.MTypeId(0x00124dfe) |
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
from __future__ import annotations | |
import sys | |
import os | |
import requests | |
import importlib | |
import subprocess | |
import pkg_resources | |
import maya.cmds as cmds |
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
from __future__ import annotations | |
import maya.cmds as cmds | |
import maya.api.OpenMaya as om2 | |
import math | |
def get_weights() -> list: | |
""" | |
function that will return a list of float value based on current soft selection. | |
""" |
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 | |
import maya.api.OpenMaya as om2 | |
if __name__ == '__main__': | |
from kata import core as kcore | |
from kata import rig as krig | |
else: | |
from .. import core as kcore | |
from .. import rig as krig |
NewerOlder