Skip to content

Commit

Permalink
prepare release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Muream committed Oct 1, 2023
1 parent c1ba053 commit 0a589d6
Show file tree
Hide file tree
Showing 10 changed files with 985 additions and 1,304 deletions.
4 changes: 2 additions & 2 deletions maya-stubs/maya-stubs/OpenMaya.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from typing import *

Unknown = Any

MAYA_API_VERSION: int = 20240000
MAYA_API_VERSION: int = 20240100
MAYA_APP_VERSION: int = 2024
MAYA_CUSTOM_VERSION: int = 20240000
MAYA_CUSTOM_VERSION_CLIENT: str = ''
Expand Down Expand Up @@ -1275,7 +1275,6 @@ class MEulerRotation:
def __repr__(self) -> Any: ...
def __sub__(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def __swig_destroy__(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
_padding: str
def alternateSolution(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def asMatrix(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def asQuaternion(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
Expand Down Expand Up @@ -8398,6 +8397,7 @@ class MWeight:
thisown: bool

NULL: int = 0
STRICT: int = 1
class array2dDouble:
"""
"""
Expand Down
2 changes: 2 additions & 0 deletions maya-stubs/maya-stubs/OpenMayaAnim.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ class MFnGeometryFilter(maya.OpenMaya.MFnDependencyNode):
def deformerSet(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def envelope(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getComponentAtIndex(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getIndexMapper(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getInputGeometry(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getOutputGeometry(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getPathAtIndex(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
Expand Down Expand Up @@ -801,6 +802,7 @@ class MFnWeightGeometryFilter(MFnGeometryFilter):
def __swig_destroy__(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
@staticmethod
def className(*args: Unknown, **kwargs: Unknown) -> Any: ...
def getEnvelopeWeights(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getWeightPlugStrings(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getWeights(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def setWeight(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
Expand Down
2 changes: 1 addition & 1 deletion maya-stubs/maya-stubs/OpenMayaUI.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class M3dView:
def className(*args: Unknown, **kwargs: Unknown) -> Any: ...
def colorAtIndex(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def colorMask(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def deviceContext(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def devicePixelRatio(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def disallowPolygonOffset(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def display(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
Expand All @@ -64,7 +65,6 @@ class M3dView:
def getM3dViewFromModelPanel(*args: Unknown, **kwargs: Unknown) -> Any: ...
def getRendererName(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def getScreenPosition(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def glxContext(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
@staticmethod
def hiliteColor(*args: Unknown, **kwargs: Unknown) -> Any: ...
def initNames(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
Expand Down
4 changes: 2 additions & 2 deletions maya-stubs/maya-stubs/api/OpenMaya.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class MArgList:
Return index of first occurrence of specified flag.
"""

kInvalidArgIndex: int = 4294967295
kInvalidArgIndex: int = -1
def lastArgUsed(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""lastArgUsed() -> int

Expand Down Expand Up @@ -20996,4 +20996,4 @@ ourdict: Dict[str, Any]
py2dict: Dict[str, Any]
def registerStringResource(*args: Unknown, **kwargs: Unknown) -> Any: ...
def registerStringResources(*args: Unknown, **kwargs: Unknown) -> Any: ...
val: str = '/usr/autodesk/maya2024/lib/python3.10/site-packages/maya/api/_OpenMaya_py2.so'
val: str = 'C:\\Program Files\\Autodesk\\Maya2024\\Python\\lib\\site-packages\\maya\\api\\_OpenMaya_py2.pyd'
72 changes: 71 additions & 1 deletion maya-stubs/maya-stubs/api/OpenMayaAnim.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,77 @@ class MFnSkinCluster(MFnGeometryFilter):
"""


class MFnWeightGeometryFilter(MFnGeometryFilter):
"""Function set for operating on weightGeometryFilter nodes.
weightGeometryFilter is the abstract node type from which
weighted deformer node types derive.
__init__()
Initializes a new, empty MFnWeightGeometryFilter functionset.
__init__(MObject)
Initializes a new MFnWeightGeometryFilter functionset and attaches it
to a geometryFilter node.
"""
def __init__(self, /, *args: Unknown, **kwargs: Unknown) -> None:
"""Initialize self. See help(type(self)) for accurate signature."""

def __new__(cls, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""Create and return a new object. See help(type) for accurate signature."""

def getEnvelopeWeights(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""getEnvelopeWeights(index) -> MFloatArray
Returns the weights the deformer uses for the geometry at the specified plug index.
* index (unsigned int) - Plug index of the desired geometry.
"""

def getWeightPlugStrings(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""weightPlugStrings(list) -> MStringArray
Returns the names of the plugs on this node that correspond to the components in the selection list.
* list (MSelectionList) - selection list that contains components.
"""

def getWeights(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""getWeights(index, components) -> MFloatArray
getWeights(path, components) -> MFloatArray
Returns the weight values of the components.
* plugIndex (unsigned int) - Plug index of the desired geometry.
* path (MDagPath) - The path of the DAG object that has the components.
* components (MObject) - The components whose weights are requested.
"""

def setWeight(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""setWeight(path, index, components, weight, oldValues=None)
setWeight(path, index, components, values)
setWeight(path, components, weight, oldValues=None)
setWeight(path, components, values)
Returns the status of the operation.
* path (MDagPath) - The path of the DAG object that has the components.
* index (unsigned int) - Plug index of the desired geometry.
* components (MObject) - The components of the object.
* weight (float) - Weight weight value for the components.
* values (MFloatArray) - An array of new values for the components.
* oldValues (MFloatArray) - An array of old values for the components.
"""

def weightPlugStrings(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""weightPlugStrings(list) -> MString
Returns a string (separated by spaces) containing the names of the plugs on this node that correspond to the components in the selection list.
* list (MSelectionList) - selection list that contains components.
"""


key: str = '__file__'
ourdict: Dict[str, Any]
py2dict: Dict[str, Any]
val: str = '/usr/autodesk/maya2024/lib/python3.10/site-packages/maya/api/_OpenMayaAnim_py2.so'
val: str = 'C:\\Program Files\\Autodesk\\Maya2024\\Python\\lib\\site-packages\\maya\\api\\_OpenMayaAnim_py2.pyd'
2 changes: 1 addition & 1 deletion maya-stubs/maya-stubs/api/OpenMayaRender.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8175,4 +8175,4 @@ class MVertexBufferDescriptorList:
key: str = '__file__'
ourdict: Dict[str, Any]
py2dict: Dict[str, Any]
val: str = '/usr/autodesk/maya2024/lib/python3.10/site-packages/maya/api/_OpenMayaRender_py2.so'
val: str = 'C:\\Program Files\\Autodesk\\Maya2024\\Python\\lib\\site-packages\\maya\\api\\_OpenMayaRender_py2.pyd'
22 changes: 12 additions & 10 deletions maya-stubs/maya-stubs/api/OpenMayaUI.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ class M3dView:
Get the current color mask
"""

def deviceContext(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""deviceContext() -> long

Returns a long containing a C++ 'void' pointer which points to the Windows device context for this view.
"""

def disallowPolygonOffset(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""disallowPolygonOffset() -> bool

Expand All @@ -141,8 +147,10 @@ class M3dView:
def display(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""display() -> long

Returns a long containing a C++ 'void' pointer which points to the X display for this view.
The X display is neccessary for using openGL.
Returns a long containing a C++ 'void' pointer which points to the OpenGL context for this view.
On 32-bit OS X this is an AGLContext.
On 64-bit OS X this is an NSOpenGLContext pointer.
On Windows this is an HGLRC.
"""

@staticmethod
Expand Down Expand Up @@ -320,13 +328,6 @@ class M3dView:
This is useful for finding out the exact location of the window as it appears on the screen. These values are in UI coordinate space so the y value increases from bottom to top.
"""

def glxContext(self, /, *args: Unknown, **kwargs: Unknown) -> Any:
"""glxContext() -> long
Returns a long containing a C++ 'void' pointer which points to the OpenGL context for this view.
This context is neccessary for using the offscreen rendering API to share textures and display lists with Maya.
"""

@staticmethod
def hiliteColor(*args: Unknown, **kwargs: Unknown) -> Any:
"""hiliteColor() -> MColor
Expand Down Expand Up @@ -5971,6 +5972,7 @@ class MTimeSliderCustomDrawManager:
def setDrawPriority(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def setDrawVisible(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def setEditPrimitiveFunction(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def setSetCopyPrimitivesFunction(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def setStartPrimitiveEditFunction(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def setStopPrimitiveEditFunction(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
def setTooltip(self, /, *args: Unknown, **kwargs: Unknown) -> Any: ...
Expand Down Expand Up @@ -6166,4 +6168,4 @@ class ShaderContext:
key: str = '__file__'
ourdict: Dict[str, Any]
py2dict: Dict[str, Any]
val: str = '/usr/autodesk/maya2024/lib/python3.10/site-packages/maya/api/_OpenMayaUI_py2.so'
val: str = 'C:\\Program Files\\Autodesk\\Maya2024\\Python\\lib\\site-packages\\maya\\api\\_OpenMayaUI_py2.pyd'
Loading

0 comments on commit 0a589d6

Please # to comment.