Nodes/ComfyUI-BrainDead/BD Get Context Path
ComfyUI Node

BD Get Context Path

Fetch a resolved STRING path from a BD_SaveContext. Wire `filename_prefix` into ComfyUI's built-in SaveImage (or any third-party save node that takes a STRING filename). Auto-picks the context if exactly one is registered.

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
BD Get Context Path
    • filename_prefix
    • full_path
    • directory
    • basename
    • status
    context_id
    suffix
    filename_override
    include_extensionfalse
    extensionpng
    include_incrementfalse
    custom_vars
    Category🧠BrainDead/Cache

    Inputs (7)

    NameTypeDefaultDescription
    context_idoptSTRINGMatch a BD_SaveContext id. Empty + exactly one registered = auto-pick.
    suffixoptSTRINGPer-fetch suffix → %suffix% in the template (e.g. '_albedo').
    filename_overrideoptSTRINGIf set, overrides %name% / %filename% in the template for THIS fetch only. Useful when the context defines a base template but you want a different leaf for this particular save.
    include_extensionoptBOOLEANfalseWhen True: full_path includes the extension (.png). filename_prefix never includes extension regardless.
    extensionoptSTRINGpngExtension used when include_extension=True. PNG by default.
    include_incrementoptBOOLEANfalseWhen True: full_path includes auto-increment _NNN suffix. filename_prefix never includes increment (let SaveImage handle it).
    custom_varsoptSTRINGPer-fetch extra variables, one per line as key=value. Layered ON TOP of the context's custom_vars. Examples: subfolder=PBR materials=metal Become %subfolder%, %materials% in the template.

    Outputs (5)

    NameTypeDescription
    filename_prefixSTRING
    full_pathSTRING
    directorySTRING
    basenameSTRING
    statusSTRING