Skip to content

Bypass groups and unbypass other groups, with a single toggle, in different places.  #322

Description

@memoakten

Thank you for this wonderful node suite!
I have a question which I've seen similar posts on here (e.g. #287 #282), but still couldn't figure out how to implement this.

I'd like to be able to control a lof of different activity, with a single switch (bool). E.g. whether to load a video or single image at the start of the workflow.

the single switch would:

  1. enable / disable Load Video or Load Image node groups
  2. set the value of 'preview indicies' for my previews accordingly [0, 30, -30, -1] vs [0]
  3. enable / disable animatediff group
  4. enable / disable Save Video or Save Image node groups
  5. etc.

At the moment I'm doing it with a Bool const into a KJNodes SetNode (i.e. global). And then reading the value in various different places and using switches to divert the signal flow accordingly. But this feels very clunky. With your bypass nodes I think there should be a much more elegant solution, but I cannot figure it out! (I also prefer the idea of having the various nodes muted at design time, as opposed to active but not used at runtime).

EDIT
I've tried using the Any Switch to pass appropiate signal downstream based on bypassed groups. See image below. But I still need to manually enable/disable the groups. How can I have a toggle that will automatically enable the video related groups while disabling the image related groups and vice versa?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions