Maya version: 2018 update 6 OS: Windows 10
- Save those two
.mafile in a folder. - Open
work.ma, it should haveupstream.mareferenced. - Execute the script
crash.py. - Save the scene and Maya will crash.
Maya version: 2018 update 6 OS: Windows 10
.ma file in a folder.work.ma, it should have upstream.ma referenced.crash.py.| """Testing generator that yields within a context and interrupt by error | |
| Looks like the context is being closed by the python garbage collection if | |
| error raised during the iteration. | |
| https://stackoverflow.com/a/19825163/4145300 | |
| """ | |
| import sys | |
| from contextlib import contextmanager |
| #!/bin/sh | |
| # ---------------------------------------------------------------------- | |
| # Copyright (C) 2005-2011 Karl J. Runge <runge at-sign karlrunge.com> | |
| # All rights reserved. | |
| # | |
| # This file is part of Xdummy. | |
| # | |
| # Xdummy is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or (at |
| import os | |
| import sys | |
| from rez.config import config as rezconfig | |
| from allzpark import cli, allzparkconfig | |
| os.environ["PATH"] += ";C:/Graphviz/bin" | |
| # os.environ["ALLZPARK_NOTHREADING"] = "1" | |
| os.environ["REZ_PACKAGES_PATH"] = os.pathsep.join([ | |
| "memory@any", |
| import os | |
| os.environ["REZ_PACKAGES_PATH"] = "memory@any" | |
| def memory_repository(packages): | |
| from rez.package_repository import package_repository_manager | |
| repository = package_repository_manager.get_repository("memory@any") |
| def patch(): | |
| import hmac | |
| import hashlib | |
| from pymongo import auth | |
| def _hi(hash_name, data, salt, iterations): | |
| """A simple implementation of PBKDF2-HMAC. | |
| This is grabed from pymongo.auth module |
| import os | |
| os.environ["REZ_PACKAGES_PATH"] = "memory@any" | |
| def memory_repository(packages): | |
| from rez.package_repository import package_repository_manager | |
| repository = package_repository_manager.get_repository("memory@any") |
| ''' | |
| This plugin was ported to python from C++, | |
| All credits by Anno Schachner | |
| original plugin is here https://github.com/wiremas/tension | |
| ''' | |
| import sys | |
| import maya.api.OpenMaya as om2 | |
| import maya.OpenMaya as om |
This is a combined package, which cannot be built but simply copying python.py into package repository.
And it will provide clean, re-usable virtual env that created from system installed python that it could find.
$ rez-search python
python-2.7-venv
python-3.6-venv
python-3.7-venv
python-3.8-venv