The Houdini Way
In Houdini, you don’t hardcode “this point is red.” Instead, you set an attributeCd = (1, 0, 0) and the renderer reads it. CodeGraph works the same way:
1
Plugin writes attributes
Plugin reads external data and writes attributes to nodes
2
Plugin declares visualization
Plugin defines how to visualize those attributes
3
Renderer applies visuals
Frontend reads attributes and applies colors/sizes
Plugin Interface
Example: Test Coverage Plugin
Registering Plugins
Via Dependency Injection
Via Plugin Discovery
Place DLLs in theplugins/ directory:
Best Practices
Use Prefixed Attributes
Always prefix:
myplugin:metric not metricClean Removal
Implement
RemoveAsync with RemoveAttributesByPrefixAsyncHandle Missing Data
Not all nodes will have data. Skip gracefully.
Report Progress
For long operations, report progress.