MIT License

项目介绍

ADN-DevTech/3dsMax-Python-HowTos 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 290 个 Star、51 次 Fork。

仓库全名
ADN-DevTech/3dsMax-Python-HowTos
开源许可证
MIT License
Star 数
290
Fork 数
51
未关闭 Issue
7

README 摘要

3ds Max Python How Tos Practical Python 3 Development Examples For 3ds Max This repo contains various Python programming examples and tutorials targeting 3ds Max. All the examples in the tutorials are implemented as pip packages. This is a bit heavy for small things (we provide a setup.py, a LICENSE and everything) but makes things installable and shareable more easily. As soon as something has dependencies on…

完整内容见 GitHub 原始 README 或本页 。

常见问题

3dsMax-Python-HowTos 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 290 个 Star。

3dsMax-Python-HowTos 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 3dsMax-Python-HowTos 的源码?

可以直接克隆仓库:git clone https://github.com/ADN-DevTech/3dsMax-Python-HowTos.git,默认分支为 master;安装与运行步骤见仓库 README。

3dsMax-Python-HowTos 最近还在维护吗?

仓库最近一次更新为 2024年4月5日,当前有 7 个未关闭 Issue;Star 数为 290,可作为社区活跃度的参考。

关于

3ds Max python samples

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
415
价值分
191
活跃状态
活跃

语言占比

MAXScript
Python
Shell

README

3ds Max Python How Tos

Practical Python 3 Development Examples For 3ds Max

Splash

This repo contains various Python programming examples and tutorials targeting 3ds Max.

All the examples in the tutorials are implemented as pip packages. This is a bit heavy for small things (we provide a setup.py, a LICENSE and everything) but makes things installable and shareable more easily. As soon as something has dependencies on external packages or requires more than one Python file, pip packages become very convenient. Because we think it is a good practice to package 3ds Max Python tools with pip, we provide all our examples in this form.

Installation

It is not necessary to install the HowTos: the repo can simply be used as a passive directory of samples and documentation for Python developers.

  • Installing the HowTos will add menu items to 3ds Max, and is documented here
  • After an update from github it is necessary to rerun install scripts to get everything working as expected

Python How Tos

New content

Samples

The samples below are translations of MAXScript How Tos that can be found in the 3ds Max online documentation.

The conversion from MaxScript to Python could have been more mechanical but we chose to implement the Python version in the best Python way known to us. An example of this is that we use PySide (Qt) for the UI as much as possible instead of using more traditional 3ds Max ui mechanisms.

How To?

Python Examples that don’t come from maxscript howtos

Python Samples

Python samples can be found in src/samples. These samples may already be in your 3ds Max installation directories.

3dsMax startup entry point

pystartup provides the maxscript code that, when copied to 3ds Max’s startup directory, will automatically launch pip packages with the 3dsMax startup entry point.

Tools

The following packages are not really examples but Python tools.

  • menuhook is not meant to be an example (but is still interesting as such!) but as a way of attaching Python functions to 3ds Max menu items. The menuhook package is used by most of the other samples.

  • realoadmod is small tool that will reload all development modules in one operation

  • mxvscode is a small tool that will automatically import debugpy (the VSCode debugging interface) during the startup of 3ds Max and make it accept remote connections. This may slow down the startup of 3ds Max quite a bit and is meant as a developer-only tool.

Extra Goodies

  • install.sh will install pip, install pystartup and pip install all the samples
  • uninstall.sh will uninstall what was installed with install.sh
  • installstartup.sh will install pip and pystartup and nothing more
  • installhowtos.sh will install only the howtos (works in a virtual env)
  • checks.sh runs pylint on the code, validates that 3ds Max is named properly, validates that code blocks in markdown always specify the programming language, checks that all links are valid in all markdown files of the repo
  • create.sh will generate an empty pip package in the current working directory.

评论

暂无评论