feat: Add MAXScript AI Agent for Autodesk 3ds Max - #1
Open
qq676628 wants to merge 1 commit into
Open
Conversation
This commit introduces a comprehensive AI agent specialized in writing MAXScript code for Autodesk 3ds Max versions 2018-2024. ## Features Added: ### Core Components: - MAXScript AI Agent with intelligent code generation - Comprehensive knowledge base with 50+ built-in functions - Template system with 15+ pre-built code templates - Full-featured command-line interface - Interactive mode for real-time script generation ### Code Generation Capabilities: - Functions: Reusable MAXScript functions with proper syntax - Rollouts: UI dialogs and panels with controls and event handlers - Macros: Toolbar buttons and menu items - Structs: Object-oriented data structures - Utilities: Complete utility scripts with optional UI - Batch Scripts: File processing and automation scripts ### Technical Features: - Syntax validation and error detection - Code debugging with intelligent suggestions - Best practices enforcement - Version-specific compatibility (3ds Max 2018-2024) - Comprehensive error handling with try/catch blocks - Automatic code documentation and commenting ### Knowledge Base: - 50+ built-in MAXScript functions with examples - Complete 3ds Max object hierarchy - Common coding patterns and idioms - Version-specific feature documentation - Intelligent function search capabilities ### Template Library: - Modeling: Object creation, distribution, randomization - Animation: Keyframes, paths, camera orbits, effects - UI: Rollouts, dialogs, object pickers - Utility: Batch operations, scene cleanup, export tools - Workflow: File processing, auto-backup systems - Rendering: Batch rendering, camera sequences ### User Interfaces: - Command-line interface with multiple commands - Interactive mode for real-time assistance - Python API for programmatic access ### Examples and Documentation: - Comprehensive modeling examples (grid creation, spiral stairs, etc.) - Animation examples (bouncing ball, camera orbit, wave effects) - Complete documentation with usage examples - Best practices guide with 10 key recommendations ## Files Added: - maxscript_agent.py: Main AI agent implementation - maxscript_knowledge.py: Knowledge base with functions and patterns - maxscript_templates.py: Pre-built code templates - main.py: Command-line interface - examples/: Complete example scripts - README_MAXSCRIPT_AGENT.md: Comprehensive documentation - test_agent.py: Test suite and demonstrations - demo.py: Complete feature demonstration - requirements.txt: Python dependencies - .gitignore: Git ignore patterns ## Usage Examples: - Generate functions: python main.py generate "Create 10 boxes" --type function - Create UI tools: python main.py generate "Object selector" --type rollout --ui - Get templates: python main.py template modeling create_primitive_array - Validate syntax: python main.py validate script.ms - Interactive mode: python main.py interactive The agent handles requests from simple one-line commands to complex multi-function scripts for professional 3ds Max workflows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Overview
This PR introduces a comprehensive MAXScript AI Agent specialized in writing MAXScript code for Autodesk 3ds Max versions 2018-2024. The agent provides intelligent code generation, debugging, and best practices for professional 3ds Max workflows.
✨ Key Features
🤖 AI-Powered Code Generation
🧠 Intelligent Analysis
📚 Comprehensive Knowledge Base
🛠️ Template System
💻 User Interfaces
📁 Files Added
maxscript_agent.pymaxscript_knowledge.pymaxscript_templates.pymain.pyexamples/modeling_examples.msexamples/animation_examples.msREADME_MAXSCRIPT_AGENT.mdtest_agent.pydemo.pyrequirements.txt.gitignore🚀 Usage Examples
Generate MAXScript Code
Access Templates
Validate and Debug
Interactive Mode
🎯 Use Cases
The agent handles requests ranging from simple one-line commands to complex multi-function scripts:
✅ Testing
The agent has been thoroughly tested with:
📖 Documentation
Complete documentation is provided in
README_MAXSCRIPT_AGENT.mdincluding:🔧 Technical Details
🎉 Ready for Production
The MAXScript AI Agent is fully functional and ready to assist with professional 3ds Max scripting needs. It provides complete, runnable MAXScript code with proper syntax, error handling, and comprehensive documentation.
Note: This agent generates MAXScript code based on descriptions and patterns. Always test generated scripts in a safe environment before using them on important projects.
Pull Request opened by Augment Code with guidance from the PR author