An experimental AI-powered code assistant for Blender's Text Editor, integrating with DeepSeek's API. Provides intelligent code completion and error fixing capabilities for Python scripting in Blender.
- AI Code Completion: Context-aware code suggestions
- Error Auto-Fix: Automatic error analysis and correction
- Customizable Prompts: Adjustable prompt templates
- API Configuration: Full control over model parameters
- Code Context Awareness: Maintains existing code style
- Download
ai_deepseek_text_editor-1.0.0
- In Blender:
- Edit > Preferences > Add-ons
- Click "Install from disk" and select the downloaded zip file
- Enable the addon in the list
- In Blender Preferences > Add-ons:
- Find "AI DeepSeek Autocomplete" and expand preferences:
- Required: Enter your DeepSeek API Key
- Adjust parameters (defaults work for most users):
- API URL
- Model name
- Temperature
- Max tokens
- Advanced prompt templates
- Open Text Editor in Blender
- Create comment block with
#
to provide context - Use shortcuts or buttons to interact with AI
Function | Shortcut | Description |
---|---|---|
AI Autocomplete | Ctrl + Space |
Generate code continuation at cursor position |
Fix Errors | F8 |
Analyze errors and attempt automatic fix |
-
Smart Autocomplete:
- Maintains code style
- Context-aware suggestions
- Inserts clean Python code
-
Error Fixing:
- Automatic code execution
- Error log analysis
- Context-aware corrections
- Preserves original code structure
-
Customization:
- Adjust temperature for creativity/accuracy
- Modify max response length
- Create custom prompts
- Fine-tune sampling parameters
- Experimental: May occasionally produce invalid code
- API Costs: Uses your DeepSeek API credits
- Code Safety: Always review AI-generated code before execution
- Error Handling: Not all errors can be automatically fixed
- Performance: Depends on API response times
-
No API Key:
- Addon disabled until valid key is provided
-
API Errors:
- Check console for detailed errors
- Verify API endpoint URL
-
Bad Suggestions:
- Reduce temperature parameter
- Check prompt formatting
- Ensure clear code context
MIT License - Use responsibly. Not affiliated with DeepSeek or Blender.