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.
| REM http://www.microsoft.com/en-us/download/details.aspx?id=40855 | |
| REM INSTALL: Windows6.1-KB2819745-x64-MultiPkg | |
| @ECHO off | |
| rem VARIABLES | |
| SET PYTHONINSTALL=C:\python27 | |
| SET LOCALFILE=c:\python-2.7.6.amd64.msi | |
| SET PYTHONURL=http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi | |
| REM My installation python script | |
| SET PWINSTALLER=http://paulwinex.ru/files/pipeline/pwpipeline_install.py | |
| SET PWINSTALLERLOCAL=c:\pwpipeline_install.py |
| #!/usr/bin/env mayapy | |
| import itertools | |
| import math | |
| import random | |
| import timeit | |
| from maya import cmds, OpenMaya, OpenMayaAnim | |
| import cask, shutil, json | |
| def save_meta(path, meta): | |
| tmp = path+'.tmp' | |
| shutil.copy2(path, tmp) | |
| a = cask.Archive(tmp) | |
| #exists_prop = a.top.properties | |
| pr = cask.Property() | |
| pr.set_value(json.dumps(meta)) | |
| a.top.properties['jmeta'] = pr |
| import maya.cmds as cmds | |
| import json | |
| # Create the dictionary "data" with shadergroup as key | |
| data = {} | |
| shaders = cmds.ls(type='shadingEngine') | |
| for shader in shaders: | |
| data[shader] = [] | |
| # Append all shapes to each shadergroup-key |
| from functools import wraps | |
| from maya import cmds | |
| def undo(func): | |
| """ Puts the wrapped `func` into a single Maya Undo action, then | |
| undoes it when the function enters the finally: block """ | |
| @wraps(func) | |
| def _undofunc(*args, **kwargs): | |
| try: | |
| # start an undo chunk |
| import maya.OpenMaya as om | |
| from imath import * | |
| from alembic.Abc import * | |
| from alembic.AbcGeom import * | |
| import math | |
| import alembic | |
| from pymel.core import * | |
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.
| function Add-EnvPath { | |
| param( | |
| [Parameter(Mandatory=$true)] | |
| [string] $Path, | |
| [ValidateSet('Machine', 'User', 'Session')] | |
| [string] $Container = 'Session' | |
| ) | |
| if ($Container -ne 'Session') { |
An elaboration of QML SceneGraph 1
python main.py --amount 100| #!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 | |