WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

tokens variable in create_morph_gif used before creation #128

Closed dotJack closed 1 year ago

dotJack commented 1 year ago

https://github.com/WASasquatch/was-node-suite-comfyui/blob/963b83db89e675d10369104a76932ee8b5fb663a/WAS_Node_Suite.py#L3595C1-L3595C137

def create_morph_gif [L3595]

When setting up the output_path, there's a reference to tokens.parseTokens(.....) on line 3607 but tokens isn't set up until further down on line 3626.

Maybe it's some python ordering thing I don't understand fully and my setup is actually wrong, but the only way to avoid a message related to this on my setup is to move the initialization for tokens towards the top of the method.

WASasquatch commented 1 year ago

I think I reorganized the node for some other reason, but it probably did get put out of order.

WASasquatch commented 1 year ago

Should be patched.