Add Impact Pack clipspace and SAM Detector integration

Introduces automatic registration of canvas images in ComfyUI's clipspace for Impact Pack compatibility, including a new 'Send to Clipspace' menu option and a method on ComfyNode. Adds monitoring and mask application for SAM Detector results, ensuring seamless mask transfer to LayerForge. Also exposes MaskTool's maskContext property for external access.
This commit is contained in:
Dariusz L
2025-07-22 23:10:09 +02:00
parent 133b009086
commit eaf9c28ef0
5 changed files with 1244 additions and 8 deletions

View File

@@ -209,6 +209,9 @@ export class MaskTool {
maskImage.src = tempCanvas.toDataURL();
return maskImage;
}
get maskContext() {
return this.maskCtx;
}
resize(width, height) {
this.initPreviewCanvas();
const oldMask = this.maskCanvas;