comfy_mtb
comfy_mtb copied to clipboard
[bug] Animation builder doesn't work properly when total_frames is an input connected to INT type output
Describe the bug
When animation builder's total_frames is set to an input and connected to a node which outputs an int, the total frames is always 100, and not the value that the node output. Note that this does not happen with primitive nodes.
Reproduction
- Add an animation builder.
- Connect
frame
output to MTB debug. - Convert
total_frames
to an input. - Add a math node like IntUnaryOperation and connect it to total frames.
- Click "queue" on animation builder.
Result: animation builder always thinks that there are 100 frames in total.
Expected behavior
Animation builder should queue the number of prompts output by the math node.
Operating System
Linux
Comfy Mode
In a custom virtual env (venv, virtualenv, conda...)
Console output
No response
Additional context
Example workflow:
i got a problem with the animation builder, the node didn't show the Reset and Queue bottom, how can i solve this problem, uhhh,
@Bearoar please open a dedicated issue it's not related.
@ali1234 This one that is probably due to a ComfyUI update but I haven't been able to dedicate time for it last week probably next week
I can confirm this is still a thing.
I'm going to release a long video, hopefully soon where I will go over those limitations and explain workarounds.
The TLDR is that I use a mix of client and server methods. For it to work properly it must only be used with nodes that have a python backend, those are called non virtual nodes in comfy