Files
MetaFusion/.windsurfrules
2025-05-02 00:14:28 +08:00

101 lines
5.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Global rules:
- Comprehensive search: All questions must first retrieve all relevant documents in the project folder to obtain context.
- Web search: After retrieving local files, a web search must be conducted to obtain more information and the latest data.
- Use context7 as much as possible to reduce tokens
## MCP usage:
Use the following MCP model context protocol to enhance responses:
1. markitdown mcp:
- Purpose: Convert PDF files to Markdown format.
- Trigger conditions: Used when the user query contains information in the PDF file, or needs to convert the PDF content to a more readable format.
2. sequential-thinking mcp;
- Purpose: Break down complex problems into smaller, more manageable parts, and reason step by step to ensure the logic and coherence of the answer.
- Trigger: Used when the user asks a question that requires multiple steps or relies on logical reasoning. This helps provide a clearer and more organized response.
## Dialogue rules:
- Always respond in 中文 in Cascade chat an composer dialogue bar
## Code rules:
- Code are always in English
- Comments are always in English
- Check code errors and correct them after each code update
- Check plugin integrity and optimize update development plans and next suggestions for each update
- The Reference path does not participate in the implementation of the reference function, but is only used as a reference. The Reference path is only used as a reference, and the necessary files can be copied from it to the current project
- The code must be compatible with Maya2022, Maya2023, Maya2024, Maya2025
- The code must be compatible with Python3.10, Python3.11, Python3.12
- All codes must be encoded in UTF-8
- All modules must be preceded by:
```.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
```
## Code write steps rules:
- Read https://github.com/EpicGames/MetaHuman-DNA-Calibration, to understand the code examples and basic rules of Metahuman DNA calibration, use context7;
- Read https://epicgames.github.io/MetaHuman-DNA-Calibration/index.html, to understand the code examples and basic rules of Metahuman DNA calibration, use context7;
- Read Readme.md to understand the plugin goals
- Read the code and examples in the Reference path
- The UI style must be implemented in a unified style file
- All UIs must be implemented using Qtscripts\Qt.py
- After each function is implemented, the document must be updated
## Project rules:
### UI Styles:
- Flat design style,
- It should have a sense of luxury and sci-fi futurism
- Rounded corner design
- Chinese should be clear and elegant
- English should be concise and clear
- Colors should be uniform
- Fonts should be uniform
- Font size should be uniform
- Buttons should be uniform
- Input boxes should be uniform
- Labels should be uniform
### Project Goal:
Make a Metahuman custom plugin for Maya, language: Python-based, Maya version: 2022, 2023, 2024, 2025
### Project Description:
- This project is a Maya plugin, the main function is to provide a model with the same topology as MetaHuman or a custom 3D model to complete custom binding, edit DNA, calibrate bone position, save DNA, load DNA, export fbx, save DNA file, edit BlendShape, and other functions.
### Project Functions:
- Provide a model with the same topology as MetaHuman or a custom 3D model to complete custom binding, edit DNA, calibrate bone position, save DNA, load DNA, export fbx, save DNA file, edit BlendShape, and other functions.
### Important Variables
- Config File: `config.py`
- Main File: `scripts\Main.py`
- UI Modules: `scripts\ui\`
- Ot Module: `scripts\ui\Qt.py`
- Style File: `scripts\ui\style.qss`
- Utilities Path: `scripts\utils\`
- Reload Module `scripts\ReloadModules.py`
### Doc reference Do not modify
- [DNA_Calibration在线文档](https://epicgames.github.io/MetaHuman-DNA-Calibration), use context7;
- [MetaHuman DNA Calibration White Paper](https://cdn2.unrealengine.com/rig-logic-whitepaper-v2-zhcn-5860d80f8357.pdf), use context7;
- [MetaHuman DNA Calibration Code](https://github.com/EpicGames/MetaHuman-DNA-Calibration), use context7;
- [MetaHuman DNA Calibration Documents](https://github.com/EpicGames/MetaHuman-DNA-Calibration/tree/main/docs), use context7;
- [MetaHuman DNA Calibration Tools](https://dev.epicgames.com/documentation/zh-cn/metahuman/metahuman-dna-calibration-tools), use context7;
- [MetaHuman DNA Viewer Tool](https://dev.epicgames.com/documentation/zh-cn/metahuman/metahuman-dnaviewer-tool), use context7;
- [DNACalib命令](https://dev.epicgames.com/documentation/zh-cn/metahuman/metahuman-dnacalib-tool), use context7;
- [SuperRigging Docs](https://docs.pointart.net/), use context7;
- [Metapipe Originsdocs](https://www.artsandspells.com/originsdocs), use context7;
- [Metapipe Nitrous](https://www.artsandspells.com/nitrous), use context7;
- [Metapipe Genetics](https://www.artsandspells.com/genetics), use context7;
- [Metapipe Synapses](https://www.artsandspells.com/synapses), use context7;
- [FACS面部表情编码系统](https://www.artsandspells.com/synapses), use context7;
- [MetaHuman 实时环境面部装配逻辑](https://zhuanlan.zhihu.com/p/511001493), use context7;
- [MetaHuman Principle](https://zhuanlan.zhihu.com/p/673471863), use context7;
- [Metahuman 蒙皮、骨骼、驱动](https://blog.csdn.net/qq_28976599/article/details/130849821), use context7;
- [MetaHuman DNA Calibration Deep Dive](https://dev.epicgames.com/community/learning/tutorials/EoPj/metahuman-dna-calibration-deep-dive), use context7;
### Code reference (do not modify)
- `Reference\DNA_Calibration`
- `Reference\MSLiveLink`
- `Reference\SuperRiggingEditor`
- `Reference\Utils`
### UI reference images:
- `Reference\UI`