MCPcopy
hub / github.com/ahujasid/blender-mcp / get_blendermcp_addon_preferences

Function get_blendermcp_addon_preferences

addon.py:39–44  ·  view source on GitHub ↗

Get add-on preferences object if available.

(context=None)

Source from the content-addressed store, hash-verified

37REQ_HEADERS.update({"User-Agent": "blender-mcp"})
38
39def get_blendermcp_addon_preferences(context=None):
40 """Get add-on preferences object if available."""
41 if context is None:
42 context = bpy.context
43 addon = context.preferences.addons.get(__name__)
44 return addon.preferences if addon else None
45
46class BlenderMCPServer:
47 def __init__(self, host='localhost', port=9876):

Callers 3

_get_config_valueMethod · 0.85
drawMethod · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected