An elaboration of QML SceneGraph 1
python main.py --amount 100| import math | |
| import maya.api.OpenMaya as om | |
| from pymel.core import * | |
| from pymel.core.datatypes import * | |
| def createBoundingCircle(meshfn): | |
| """Parameter: meshfn - MFnMesh | |
| Represent a face by a center and radius, i.e. | |
| center = [center1u, center1v, center2u, center2v, ... ] | |
| radius = [radius1, radius2, ... ] |
| #!/usr/bin/python2 | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2011 Sebastian Wiesner <[email protected]> | |
| # Modifications by Charl Botha <[email protected]> | |
| # * customWidgets support (registerCustomWidget() causes segfault in | |
| # pyside 1.1.2 on Ubuntu 12.04 x86_64) | |
| # * workingDirectory support in loadUi | |
| # found this here: | |
| # https://github.com/lunaryorn/snippets/blob/master/qt4/designer/pyside_dynamic.py |
| from pymel.core import * | |
| import maya.OpenMaya as om | |
| from imath import * | |
| from alembic.Abc import * | |
| import alembic | |
| import math | |
| def get_mesh_data(): | |
| selection = om.MSelectionList() |
| import maya.OpenMaya as om | |
| from imath import * | |
| from alembic.Abc import * | |
| from alembic.AbcGeom import * | |
| import math | |
| import alembic | |
| def get_mesh_data(): | |
| selection = om.MSelectionList() |
| from pymel.core import * | |
| import maya.OpenMaya as om | |
| from imath import * | |
| from alembic.Abc import * | |
| from alembic.AbcGeom import * | |
| import math | |
| import alembic | |
| def get_mesh_data(): |
| #!python | |
| # coding: utf-8 | |
| import sys | |
| import ctypes | |
| def run_as_admin(argv=None, debug=False): | |
| shell32 = ctypes.windll.shell32 | |
| if argv is None and shell32.IsUserAnAdmin(): | |
| return True | |
An elaboration of QML SceneGraph 1
python main.py --amount 100| function Add-EnvPath { | |
| param( | |
| [Parameter(Mandatory=$true)] | |
| [string] $Path, | |
| [ValidateSet('Machine', 'User', 'Session')] | |
| [string] $Container = 'Session' | |
| ) | |
| if ($Container -ne 'Session') { |
Download ZLIB for Windows from Sourceforge and install it on your Windows machine. Works with x86/x64
Currently, the ZLIB installer from Sourceforge (above) installs in C:/Program Files (x86)/GnuWin32.
| import maya.OpenMaya as om | |
| from imath import * | |
| from alembic.Abc import * | |
| from alembic.AbcGeom import * | |
| import math | |
| import alembic | |
| from pymel.core import * | |