Update namespace to MXD (#2)

update help popup to register under MXD and change settings key
rename jsnodes extension to MXD.jsnodes
switch python node categories to MXD namespace
This commit is contained in:
Maxed-Out-99
2025-07-18 10:01:27 -07:00
committed by GitHub
parent 5920ada2cd
commit e7d96b947f
3 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -15,7 +15,7 @@ class FluxEmptyLatentImage:
the resolution in the "Empty Latent Image" node.
"""
TITLE = "Flux Empty Latent Image"
CATEGORY = "KJNodes/Latent"
CATEGORY = "MXD/Latent"
RESOLUTIONS = {
"— High Resolutions —": None,
@@ -93,7 +93,7 @@ class SdxlEmptyLatentImage:
the resolution in the "Empty Latent Image" node.
"""
TITLE = "Sdxl Empty Latent Image (With Resolutions)"
CATEGORY = "KJNodes/Latent"
CATEGORY = "MXD/Latent"
# SDXL predefined resolutions (width, height)
RESOLUTIONS = {
@@ -190,7 +190,7 @@ class ImageScaleToTotalPixelsSafe:
RETURN_TYPES = ("IMAGE",)
FUNCTION = "upscale"
CATEGORY = "KJNodes/Upscaling"
CATEGORY = "MXD/Upscaling"
def upscale(self, image, upscale_method, total_megapixels):
b, h, w, c = image.shape
@@ -267,7 +267,7 @@ class FluxImageScaleToTotalPixelsSafe:
RETURN_TYPES = ("IMAGE",)
FUNCTION = "upscale"
CATEGORY = "KJNodes/Upscaling"
CATEGORY = "MXD/Upscaling"
def upscale(self, image, upscale_method, total_megapixels):
b, h, w, c = image.shape
@@ -309,7 +309,7 @@ class PromptWithGuidance(ComfyNodeABC):
RETURN_TYPES = (IO.CONDITIONING,)
FUNCTION = "encode_and_guide"
CATEGORY = "KJNodes/conditioning"
CATEGORY = "MXD/conditioning"
def encode_and_guide(self, text, clip, guidance):
if clip is None:
@@ -330,7 +330,7 @@ class FluxResolutionMatcher:
"""
# --- ComfyUI Setup ---
TITLE = "Flux Resolution Matcher"
CATEGORY = "KJNodes/Latent"
CATEGORY = "MXD/Latent"
DESCRIPTION = "Takes an image and finds the closest resolution for Flux Empty Latent."
FUNCTION = "match_resolution"
+4 -4
View File
@@ -45,12 +45,12 @@ loadScript('/kjweb_async/purify.min.js').catch((e) => {
console.log(e)
})
const categories = ["KJNodes", "SUPIR", "VoiceCraft", "Marigold", "IC-Light", "WanVideoWrapper"];
const categories = ["MXD", "SUPIR", "VoiceCraft", "Marigold", "IC-Light", "WanVideoWrapper"];
app.registerExtension({
name: "KJNodes.HelpPopup",
name: "MXD.HelpPopup",
async beforeRegisterNodeDef(nodeType, nodeData) {
if (app.ui.settings.getSettingValue("KJNodes.helpPopup") === false) {
if (app.ui.settings.getSettingValue("MXD.helpPopup") === false) {
return;
}
try {
@@ -61,7 +61,7 @@ app.registerExtension({
else return
});
} catch (error) {
console.error("Error in registering KJNodes.HelpPopup", error);
console.error("Error in registering MXD.HelpPopup", error);
}
},
});
+2 -2
View File
@@ -2,9 +2,9 @@ import { app } from "../../../scripts/app.js";
import { applyTextReplacements } from "../../../scripts/utils.js";
app.registerExtension({
name: "KJNodes.jsnodes",
name: "MXD.jsnodes",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if(!nodeData?.category?.startsWith("KJNodes")) {
if(!nodeData?.category?.startsWith("MXD")) {
return;
}
switch (nodeData.name) {