3 Commits
Author SHA1 Message Date
Gregor Adams a9361f60fc Update README.md 2023-08-01 14:00:29 +02:00
Gregor Adams 76e37152ad Update README.md 2023-08-01 14:00:06 +02:00
pixelass 8e6f058da7 chore: make installable via manager 2023-08-01 05:37:07 +02:00
16 changed files with 40 additions and 39 deletions
+2 -1
View File
@@ -1 +1,2 @@
.idea
.idea
__pycache__/*
+2 -2
View File
@@ -46,10 +46,10 @@ git clone git@github.com:failfa-st/failfast-comfyui-extensions.git
1. Download the project archive from [here](https://github.com/failfa-st/failfast-comfyui-extensions/archive/refs/heads/main.zip).
2. Extract the downloaded zip file.
3. Move the extracted files to `your-path/ComfyUI/custom_nodes`.
3. Move the extracted files to `path/to/your/ComfyUI/custom_nodes`.
4. Restart ComfyUI
The folder structure should resemble: `your-path/ComfyUI/custom_nodes/failfast-comfyui-extensions`.
The folder structure should resemble: `path/to/your/ComfyUI/custom_nodes/failfast-comfyui-extensions`.
## Update
+3 -2
View File
@@ -1,14 +1,15 @@
import os
import shutil
comfy_path = '../..'
comfy_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
failfast_path = os.path.abspath(os.path.dirname(__file__))
def setup_js():
try:
js_dest_path = os.path.join(comfy_path, "web", "extensions", "failfast-comfyui-extensions")
js_src_path = os.path.join(failfast_path, "extensions")
print(js_src_path)
print(js_dest_path)
if os.path.exists(js_dest_path):
shutil.rmtree(js_dest_path)
+1 -1
View File
@@ -5,7 +5,7 @@ import platform
import shutil
import subprocess
comfy_path = '../..'
comfy_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def rmtree(path):
retry_count = 3
+4 -4
View File
@@ -9,8 +9,8 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { $el } from "../scripts/ui.js";
import { app } from "/scripts/app.js";
import { $el } from "/scripts/ui.js";
/**
* Render Shadow
@@ -32,13 +32,13 @@ app.registerExtension({
callback: () =>
app.graph.arrange(
LiteGraph.CANVAS_GRID_SIZE * 4,
LiteGraph.VERTICAL_LAYOUT,
LiteGraph.VERTICAL_LAYOUT
),
},
{
content: "Arrange (horizontal)",
callback: () => app.graph.arrange(LiteGraph.CANVAS_GRID_SIZE * 2),
},
}
);
return menuOptions;
+10 -10
View File
@@ -9,8 +9,8 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { $el } from "../scripts/ui.js";
import { app } from "/scripts/app.js";
import { $el } from "/scripts/ui.js";
function getColor(index, lengthOfItems, l = 0.5) {
// Normalize the index value to be between 0 and 360 for full spectrum of hue
@@ -311,9 +311,9 @@ app.registerExtension({
node.setDirtyCanvas(true, true);
},
}),
],
]
),
]),
])
);
if (isGroup) {
menuRoot.append(
@@ -351,9 +351,9 @@ app.registerExtension({
node.setDirtyCanvas(true, true);
},
}),
],
]
),
]),
])
);
}
return response;
@@ -385,7 +385,7 @@ app.registerExtension({
value: index,
selected: index === +value,
});
}),
})
),
$el(
"label",
@@ -398,19 +398,19 @@ app.registerExtension({
type: "checkbox",
checked:
window.localStorage.getItem(
`Comfy.Settings.${colorsName}-posneg`,
`Comfy.Settings.${colorsName}-posneg`
) === "true",
onchange: (event) => {
window.localStorage.setItem(
`Comfy.Settings.${colorsName}-posneg`,
event.target.checked.toString(),
event.target.checked.toString()
);
if (event.target.checked) {
colorPositiveNegative(app);
}
},
}),
],
]
),
]),
]);
+1 -1
View File
@@ -9,7 +9,7 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { app } from "/scripts/app.js";
/**
* Connections Width
+1 -1
View File
@@ -9,7 +9,7 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { app } from "/scripts/app.js";
/**
* Render all nodes as box
+1 -1
View File
@@ -9,7 +9,7 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { app } from "/scripts/app.js";
/**
* Always snap to grid
+3 -3
View File
@@ -9,7 +9,7 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { app } from "/scripts/app.js";
/**
* Render Shadow
@@ -52,7 +52,7 @@ app.registerExtension({
node.flags.pinned = true;
});
},
},
}
);
return menuOptions;
@@ -92,7 +92,7 @@ app.registerExtension({
});
});
},
},
}
);
return menuOptions;
+3 -3
View File
@@ -10,8 +10,8 @@
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { $el } from "../scripts/ui.js";
import { app } from "/scripts/app.js";
import { $el } from "/scripts/ui.js";
/**
* Toggle links render mode
@@ -50,7 +50,7 @@ app.registerExtension({
value: index,
selected: index === +value,
});
}),
})
),
]),
]);
+3 -3
View File
@@ -9,7 +9,7 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { app } from "/scripts/app.js";
/**
* Nodes
@@ -35,7 +35,7 @@ app.registerExtension({
async setup(app) {
app.graph._nodes.forEach(function (node) {
let active = JSON.parse(
window.localStorage.getItem(`Comfy.Settings.${nodesName}`) ?? "false",
window.localStorage.getItem(`Comfy.Settings.${nodesName}`) ?? "false"
);
const onResize = node.onResize;
node.onResize = function (size) {
@@ -63,7 +63,7 @@ app.registerExtension({
const onMouseDown = node.onMouseDown;
node.onMouseDown = function () {
active = JSON.parse(
window.localStorage.getItem(`Comfy.Settings.${nodesName}`) ?? "false",
window.localStorage.getItem(`Comfy.Settings.${nodesName}`) ?? "false"
);
return onMouseDown?.apply(this, arguments);
};
+2 -3
View File
@@ -9,8 +9,7 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { $el } from "../scripts/ui.js";
import { app } from "/scripts/app.js";
/**
* Pin/Unpin all nodes on canvas
@@ -41,7 +40,7 @@ app.registerExtension({
node.flags.pinned = false;
});
},
},
}
);
return menuOptions;
+1 -1
View File
@@ -9,7 +9,7 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { app } from "/scripts/app.js";
/**
* Render Shadow
+2 -2
View File
@@ -9,8 +9,8 @@
* GitHub: https://github.com/failfa-st
* Discord: https://discord.com/invite/m3TBB9XEkb
*/
import { app } from "../scripts/app.js";
import { $el } from "../scripts/ui.js";
import { app } from "/scripts/app.js";
import { $el } from "/scripts/ui.js";
/**
* Font size of prompt fields
+1 -1
View File
@@ -5,7 +5,7 @@ import platform
import shutil
import subprocess
comfy_path = '../..'
comfy_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def rmtree(path):
retry_count = 3