kijai / ComfyUI-CogVideoXWrapper

989 stars 59 forks source link

Masking. #217

Open arthurwolf opened 1 week ago

arthurwolf commented 1 week ago

Hey.

Some video generation nodes have a "mask" input so only the part covered by the mask (or vice-versa) is actually getting animated, and the rest stays fixed (with feathering/greyscale letting you do "degrees" in the mask too).

Is this something you can do with this? I don't see a "mask" input.

Any recommendations of how to get this done? Maybe some sort of workaround? Maybe some simple code change I could try out (I can code python) ?

Any idea would be greatly appreciated.

Thanks.

Edit: I found this node has a "mask" property, and found the property is present if I try to use the node: https://github.com/kijai/ComfyUI-CogVideoXWrapper/blob/main/nodes.py#L349

But the multiple example workflows I have tried do not use this node. How is this node used, and is the mask property there actually what I am looking for?