Overview of NodeService
masterNodeService is a collection of static methods used to manage and manipulate Blender shader node trees and nodes within MPFB. It serves as the primary interface for all shader-related operations, including node creation, destruction, querying, and link management.
Key Capabilities:
- Node Tree Lifecycle: Creating, destroying, and clearing node trees.
- Node Creation: Generic and type-specific methods for adding nodes.
- Node Queries: Finding nodes by name, type, or class.
- Socket Operations: Finding sockets and getting/setting default values.
- Link Management: Creating and removing connections between nodes.
- Bulk Operations: Applying entire node tree configurations from dictionary definitions.
- Custom Node Groups: Managing MPFB's composite shader node groups.
Serialization Formats:
- v1 (Legacy): Older serialization format.
- v2 (Current): Robust format providing complete node information, including socket identifiers and attribute metadata, ensuring compatibility across Blender versions.
Note: All methods in NodeService are static; do not attempt to instantiate the class.