Check and fix maya virus.
Project description
maya-umbrella
This tool is designed to provide a robust solution for identifying and resolving any potential viruses within Autodesk Maya. It ensures a secure and seamless user experience by proactively scanning for threats and effectively neutralizing them.
It can be provided as an API for seamless integration into your existing pipeline.
开发环境设置
Set up the development environment using a virtual environment, and it is recommended to use Python 3.8 or higher versions.
通过虚拟环境去设置开发环境, 推荐python-3.8以上的版本
pip install nox poetry
开发调试
nox -s maya-2020
在maya中测试
通过nox -s maya-xxx
, 启动maya.
nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了maya-2020
,那么通过nox -s maya-2018
启动maya后在脚本编辑器中执行下面得代码,就会动态的从<repo>/tests/virus/
里面去open ma文件去进行测试.
import manual_test_in_maya
manual_test_in_maya.start()
增加新的疫苗
在<repo>/maya_umbrella/vaccines/
新建一个py, 因为有很多病毒没有具体的名字代号,我们统一以vaccine<id>.py
继承from maya_umbrella.vaccine import AbstractVaccine
并且class名字叫Vaccine
即可, 然后去写具体的收集病毒逻辑
代码检查
我们可以利用封装好的nox
命令去执行进行代码检查
nox -s ruff_check
环境变量
我们可以通过下列环境变量去修改maya_umbrella的一些设置,方便有pipeline的公司可以更好的集成
修改maya umbrella的日志保存目录,默认是windows temp目录
MAYA_UMBRELLA_LOG_ROOT
修改maya umbrella的日志文件名称, 默认是maya_umbrella
MAYA_UMBRELLA_LOG_NAME
设置日志级别,默认是info, 可以是debug可以看到更多的日志信息
MAYA_UMBRELLA_LOG_LEVEL
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Hal 💻 🚇 ⚠️ |
hotwinter0 ⚠️ 💻 |
lingyunfx ⚠️ |
yjjjj ⚠️ 💻 |
This project follows the all-contributors specification. Contributions of any kind are welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for maya_umbrella-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f57792746e1247ce0909878c093c9734cf91beb7a35c3684cd44f2da8eab3dfc |
|
MD5 | bb83122dd893756a4c1b614692e3f381 |
|
BLAKE2b-256 | ebe5b5237f9131bd016cdfa2b4a18bfaa60d83e0ecdb24b3d0ca0fe615804cd0 |