[{"data":1,"prerenderedAt":863},["ShallowReactive",2],{"navigation_docs":3,"-pipelines-macros":271,"-pipelines-macros-surround":858},[4,35,70,120,154,183,217,246,261],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"What is ISF Studio","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Your first shader","\u002Fgetting-started\u002Ffirst-shader","1.getting-started\u002F3.first-shader","i-lucide-code-2",{"title":25,"path":26,"stem":27,"icon":28},"Your first pipeline","\u002Fgetting-started\u002Ffirst-pipeline","1.getting-started\u002F4.first-pipeline","i-lucide-workflow",{"title":30,"path":31,"stem":32,"icon":33},"Interface tour","\u002Fgetting-started\u002Finterface-tour","1.getting-started\u002F5.interface-tour","i-lucide-layout-panel-left",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Library","\u002Flibrary","2.library",[40,45,50,55,60,65],{"title":41,"path":42,"stem":43,"icon":44},"The explorer","\u002Flibrary\u002Fexplorer","2.library\u002F1.explorer","i-lucide-folder-tree",{"title":46,"path":47,"stem":48,"icon":49},"Organizing files","\u002Flibrary\u002Forganizing-files","2.library\u002F2.organizing-files","i-lucide-files",{"title":51,"path":52,"stem":53,"icon":54},"Images and gallery","\u002Flibrary\u002Fimages-and-gallery","2.library\u002F3.images-and-gallery","i-lucide-image",{"title":56,"path":57,"stem":58,"icon":59},"Sharing","\u002Flibrary\u002Fsharing","2.library\u002F4.sharing","i-lucide-package",{"title":61,"path":62,"stem":63,"icon":64},"Installing in software","\u002Flibrary\u002Finstalling-in-software","2.library\u002F5.installing-in-software","i-lucide-folder-input",{"title":66,"path":67,"stem":68,"icon":69},"OpenFX plug-ins","\u002Flibrary\u002Fopenfx-plugins","2.library\u002F6.openfx-plugins","i-lucide-plug",{"title":71,"path":72,"stem":73,"children":74,"page":34},"Shaders","\u002Fshaders","3.shaders",[75,80,85,90,95,100,105,110,115],{"title":76,"path":77,"stem":78,"icon":79},"The code editor","\u002Fshaders\u002Fcode-editor","3.shaders\u002F1.code-editor","i-lucide-square-code",{"title":81,"path":82,"stem":83,"icon":84},"The ISF header","\u002Fshaders\u002Fisf-header","3.shaders\u002F2.isf-header","i-lucide-braces",{"title":86,"path":87,"stem":88,"icon":89},"The preview","\u002Fshaders\u002Fpreview","3.shaders\u002F3.preview","i-lucide-monitor-play",{"title":91,"path":92,"stem":93,"icon":94},"Input controls","\u002Fshaders\u002Finput-controls","3.shaders\u002F4.input-controls","i-lucide-sliders-horizontal",{"title":96,"path":97,"stem":98,"icon":99},"Presets","\u002Fshaders\u002Fpresets","3.shaders\u002F5.presets","i-lucide-bookmark",{"title":101,"path":102,"stem":103,"icon":104},"Console and fixes","\u002Fshaders\u002Fconsole","3.shaders\u002F6.console","i-lucide-terminal",{"title":106,"path":107,"stem":108,"icon":109},"Shader templates","\u002Fshaders\u002Ftemplates","3.shaders\u002F7.templates","i-lucide-layout-template",{"title":111,"path":112,"stem":113,"icon":114},"Vertex shaders","\u002Fshaders\u002Fvertex-shaders","3.shaders\u002F8.vertex-shaders","i-lucide-shapes",{"title":116,"path":117,"stem":118,"icon":119},"Font images","\u002Fshaders\u002Ffont-images","3.shaders\u002F9.font-images","i-lucide-type",{"title":121,"path":122,"stem":123,"children":124,"page":34},"Pipelines","\u002Fpipelines","4.pipelines",[125,129,134,139,144,149],{"title":126,"path":127,"stem":128,"icon":28},"Concepts","\u002Fpipelines\u002Fconcepts","4.pipelines\u002F1.concepts",{"title":130,"path":131,"stem":132,"icon":133},"Editing a graph","\u002Fpipelines\u002Fediting-graphs","4.pipelines\u002F2.editing-graphs","i-lucide-mouse-pointer-click",{"title":135,"path":136,"stem":137,"icon":138},"Node catalog","\u002Fpipelines\u002Fnode-catalog","4.pipelines\u002F3.node-catalog","i-lucide-boxes",{"title":140,"path":141,"stem":142,"icon":143},"Toolbox and snippets","\u002Fpipelines\u002Fsnippets-and-toolbox","4.pipelines\u002F4.snippets-and-toolbox","i-lucide-toolbox",{"title":145,"path":146,"stem":147,"icon":148},"Composing","\u002Fpipelines\u002Fcomposing","4.pipelines\u002F5.composing","i-lucide-combine",{"title":150,"path":151,"stem":152,"icon":153},"Macros","\u002Fpipelines\u002Fmacros","4.pipelines\u002F6.macros","i-lucide-package-plus",{"title":155,"path":156,"stem":157,"children":158,"page":34},"Media and inputs","\u002Fmedia","5.media",[159,164,168,173,178],{"title":160,"path":161,"stem":162,"icon":163},"Resources","\u002Fmedia\u002Fresources","5.media\u002F1.resources","i-lucide-clapperboard",{"title":165,"path":166,"stem":167,"icon":163},"Export a video","\u002Fmedia\u002Fvideo-export","5.media\u002F2.video-export",{"title":169,"path":170,"stem":171,"icon":172},"Videos and sounds","\u002Fmedia\u002Fvideos-and-sounds","5.media\u002F3.videos-and-sounds","i-lucide-audio-lines",{"title":174,"path":175,"stem":176,"icon":177},"MIDI","\u002Fmedia\u002Fmidi","5.media\u002F4.midi","i-lucide-sliders-vertical",{"title":179,"path":180,"stem":181,"icon":182},"OSC","\u002Fmedia\u002Fosc","5.media\u002F5.osc","i-lucide-radio-tower",{"title":184,"path":185,"stem":186,"children":187,"page":34},"Workspace","\u002Fworkspace","6.workspace",[188,193,198,203,208,213],{"title":189,"path":190,"stem":191,"icon":192},"Tabs and layout","\u002Fworkspace\u002Ftabs-and-layout","6.workspace\u002F1.tabs-and-layout","i-lucide-columns-2",{"title":194,"path":195,"stem":196,"icon":197},"History and clipboard","\u002Fworkspace\u002Fhistory-and-clipboard","6.workspace\u002F2.history-and-clipboard","i-lucide-history",{"title":199,"path":200,"stem":201,"icon":202},"Saving and drafts","\u002Fworkspace\u002Fsaving","6.workspace\u002F3.saving","i-lucide-save",{"title":204,"path":205,"stem":206,"icon":207},"Shortcuts","\u002Fworkspace\u002Fshortcuts","6.workspace\u002F4.shortcuts","i-lucide-keyboard",{"title":209,"path":210,"stem":211,"icon":212},"Preferences","\u002Fworkspace\u002Fpreferences","6.workspace\u002F5.preferences","i-lucide-settings",{"title":56,"path":214,"stem":215,"icon":216},"\u002Fworkspace\u002Fsharing","6.workspace\u002F6.sharing","i-lucide-share-2",{"title":218,"path":219,"stem":220,"children":221,"page":34},"Reference","\u002Freference","7.reference",[222,226,231,236,241],{"title":223,"path":224,"stem":225,"icon":84},"ISF header","\u002Freference\u002Fisf-header-reference","7.reference\u002F1.isf-header-reference",{"title":227,"path":228,"stem":229,"icon":230},"File formats","\u002Freference\u002Ffile-formats","7.reference\u002F2.file-formats","i-lucide-file-archive",{"title":232,"path":233,"stem":234,"icon":235},"Troubleshooting","\u002Freference\u002Ftroubleshooting","7.reference\u002F3.troubleshooting","i-lucide-life-buoy",{"title":237,"path":238,"stem":239,"icon":240},"ISF specifications","\u002Freference\u002Fisf-specifications","7.reference\u002F4.isf-specifications","i-lucide-book-marked",{"title":242,"path":243,"stem":244,"icon":245},"Pipeline text","\u002Freference\u002Fpipeline-text","7.reference\u002F5.pipeline-text","i-lucide-bot-message-square",{"title":247,"path":248,"stem":249,"children":250,"page":34},"For developers","\u002Fruntime","8.runtime",[251,256],{"title":252,"path":253,"stem":254,"icon":255},"Playing pipelines and shaders","\u002Fruntime\u002Fplaying-pipelines","8.runtime\u002F1.playing-pipelines","i-lucide-play",{"title":257,"path":258,"stem":259,"icon":260},"Listening to sound","\u002Fruntime\u002Flistening-to-sound","8.runtime\u002F2.listening-to-sound","i-lucide-audio-waveform",{"title":262,"path":263,"stem":264,"children":265,"page":34},"Licensing","\u002Flicensing","9.licensing",[266],{"title":267,"path":268,"stem":269,"icon":270},"Pricing","\u002Flicensing\u002Fpricing","9.licensing\u002F1.pricing","i-lucide-badge-euro",{"id":272,"title":150,"body":273,"description":851,"extension":852,"links":853,"meta":854,"navigation":855,"path":151,"seo":856,"stem":152,"__hash__":857},"docs\u002F4.pipelines\u002F6.macros.md",{"type":274,"value":275,"toc":831},"minimark",[276,293,309,314,342,345,348,353,359,399,403,410,420,424,431,453,456,460,475,478,481,485,495,545,548,568,581,585,594,600,612,618,622,625,646,650,656,678,681,685,688,724,727,732,736,739,804,807,814,818],[277,278,279,280,284,285,288,289,292],"p",{},"A ",[281,282,283],"strong",{},"macro"," is a part of a pipeline that you keep under a name, to use again in other pipelines: a blur you like, a colour correction, a noise you always build the same way. Where a shader or a pipeline of your library is a node by itself (see ",[286,287,145],"a",{"href":146},"), a macro is ",[281,290,291],{},"a group of nodes",": once placed, it is a group of the pipeline, with its own inputs and outputs, that you can open and read.",[277,294,295,296,299,300,303,304,308],{},"A macro is made of ",[281,297,298],{},"nodes",". For a piece of ",[281,301,302],{},"code"," (one GLSL function, such as a noise or a distance), a ",[286,305,307],{"href":306},"\u002Fpipelines\u002Fsnippets-and-toolbox#snippet-or-macro","snippet"," is the right tool, and it can also go into a shader.",[310,311,313],"h2",{"id":312},"make-a-macro","Make a macro",[315,316,317,321,336],"ol",{},[318,319,320],"li",{},"Select the nodes that make the macro, on the canvas.",[318,322,323,324,327,328,331,332,335],{},"Right-click one of them and choose ",[281,325,326],{},"Create Macro",", or press ",[302,329,330],{},"Cmd+M"," (",[302,333,334],{},"Ctrl+M"," on Windows and Linux).",[318,337,338,339,341],{},"Give it a name and press ",[281,340,326],{},".",[277,343,344],{},"The nodes become a group, and that group is the first use of the macro. A group that you have already named yourself becomes a macro under that name, with no question asked.",[277,346,347],{},"A macro keeps the images its nodes use: it does not depend on a file of your library.",[349,350,352],"h3",{"id":351},"a-macro-with-a-function","A macro with a function",[277,354,279,355,358],{},[281,356,357],{},"Function"," node can be part of a macro, with its parameters, its inputs and its return: they are kept as they are, and every copy has its own function. Two things to know:",[360,361,362,369,376],"ul",{},[318,363,364,365,368],{},"The ",[281,366,367],{},"parameters of a function stay inside it",": they are not ports of the macro. A macro has the ports of its group: to give the macro an input or an output, wire it to a group input or output, as in any group.",[318,370,371,372,375],{},"The macro shows the ",[281,373,374],{},"parameters of its function"," on its left side, before its own inputs, as a function node does: they are there to be read, not wired (the call gives them).",[318,377,378,379,384,385,388,389,392,393,395,396,398],{},"A function is used through its ",[281,380,381],{},[302,382,383],{},"fn"," output. If the call (",[281,386,387],{},"Call Function",") is in the macro too, nothing else is needed. If the call is ",[281,390,391],{},"outside",", wire the ",[302,394,383],{}," of the function to a group output of the macro (type ",[302,397,383],{},"): the call placed after it takes the parameters of the function.",[310,400,402],{"id":401},"where-macros-are","Where macros are",[277,404,405,406,409],{},"Macros are not in your library, and not in the explorer. They are kept by ISF Studio, for you: ",[281,407,408],{},"the same ones in every window and every library",". A macro made in one window is in the others at once.",[277,411,412,413,416,417,419],{},"Open the ",[281,414,415],{},"Toolbox"," (the second activity of the bar on the left): its ",[281,418,150],{}," section lists them, above the snippets. The search field of the Toolbox finds them by name, or by the name of the group they are in.",[349,421,423],{"id":422},"arrange-them-in-groups","Arrange them in groups",[277,425,426,427,430],{},"Macros live in a tree of ",[281,428,429],{},"groups",", like folders:",[360,432,433,439,442],{},[318,434,435,436,341],{},"Right-click the empty part of the list, or a group, and choose ",[281,437,438],{},"New Group",[318,440,441],{},"Drag a macro, or a group, onto another group to move it. Drop it on the empty part of the list to bring it back to the top.",[318,443,444,445,448,449,452],{},"Right-click a macro or a group to ",[281,446,447],{},"Rename"," it, or ",[281,450,451],{},"Delete…"," it. A deleted macro goes to the trash of your computer.",[277,454,455],{},"Moving or renaming a macro does not break the pipelines that use it: they find it again.",[310,457,459],{"id":458},"place-a-macro-in-a-pipeline","Place a macro in a pipeline",[360,461,462,469],{},[318,463,464,465,468],{},"Right-click a macro in the Toolbox and choose ",[281,466,467],{},"Add to Pipeline","; or",[318,470,471,472,474],{},"right-click the canvas, and choose the macro in the ",[281,473,150],{}," submenu of the add menu, which comes last.",[277,476,477],{},"The macro is placed as a group, in the middle of the view or where you right-clicked. The first one takes the name of the macro, the next ones are numbered. Placing a macro is one step of the history: it can be undone.",[277,479,480],{},"Macros are not offered in the vertex graph.",[310,482,484],{"id":483},"a-macro-and-its-copies","A macro and its copies",[277,486,487,488,491,492,494],{},"A macro placed in a pipeline is a ",[281,489,490],{},"copy",": the pipeline holds the nodes of the macro as they were when you placed it, so the pipeline works, and can be shared, whatever happens to the macro afterwards (see ",[286,493,56],{"href":57},"). It also remembers which macro it comes from, and tells if the macro has changed since:",[496,497,498,511],"table",{},[499,500,501],"thead",{},[502,503,504,508],"tr",{},[505,506,507],"th",{},"State",[505,509,510],{},"What it means",[512,513,514,525,535],"tbody",{},[502,515,516,522],{},[517,518,519],"td",{},[281,520,521],{},"Linked",[517,523,524],{},"The macro is as it was when the copy was made.",[502,526,527,532],{},[517,528,529],{},[281,530,531],{},"Outdated",[517,533,534],{},"The macro was changed since: the copy takes it in by itself, in the pipeline in front (see below).",[502,536,537,542],{},[517,538,539],{},[281,540,541],{},"Missing",[517,543,544],{},"The macro is not there any more: deleted, or this computer does not have it. The copy keeps working as a group.",[277,546,547],{},"Right-click a copy in a pipeline:",[360,549,550,556,562],{},[318,551,552,555],{},[281,553,554],{},"Edit Macro"," opens the macro itself in a tab, like a pipeline. Every pipeline that uses it is told that it changed. It is not available when the macro is missing.",[318,557,558,561],{},[281,559,560],{},"Update from Macro"," takes the macro as it is now into the copy: its ports and its nodes. It is only available when the macro is outdated, which is rare, since the copies follow the macro by themselves. A connection is kept when the new macro has a port of the same name and the same type, and dropped when it has not. It is one step of the history.",[318,563,564,567],{},[281,565,566],{},"Make Unique"," cuts the copy from its macro: it becomes a group like any other, and later changes of the macro no longer reach it.",[277,569,570,571,574,575,577,578,580],{},"The copies ",[281,572,573],{},"follow the macro",": when a macro is saved, every copy in the pipeline in front takes it in, and a pipeline that was behind does it when you open it. A copy that sits inside a group, or inside another macro, follows too: when a macro changes (new inputs, say), the copies of the macros that hold it take the change in, with no need to open the group or to open and save the outer macro first. ",[281,576,560],{}," is available on a macro that holds a macro that changed. Each update is one step of the history, so it can be undone, and ",[281,579,566],{}," is what keeps a copy as it is.",[310,582,584],{"id":583},"change-a-macro","Change a macro",[277,586,587,590,591,593],{},[281,588,589],{},"Double-click"," a macro in the Toolbox, or choose ",[281,592,554],{},": a notice says that this opens the macro itself, then it opens in a tab, and you edit it as any pipeline. Save it, and the pipelines that use it take the change in (see above).",[277,595,596,599],{},[281,597,598],{},"Double-click a copy"," in a pipeline, and ISF Studio asks what you mean, since editing it here is not the same thing as editing the macro:",[360,601,602,607],{},[318,603,604,606],{},[281,605,554],{}," changes the macro for every pipeline that uses it.",[318,608,609,611],{},[281,610,566],{}," cuts this copy from the macro, and opens it, to change this one only.",[277,613,614,615,341],{},"The question can be switched off with ",[281,616,617],{},"Do not show again",[310,619,621],{"id":620},"share-macros","Share macros",[277,623,624],{},"Macros are kept by ISF Studio, not in your library, so they are shared as files:",[360,626,627,636],{},[318,628,279,629,631,632,635],{},[281,630,283],{}," on its own is a ",[302,633,634],{},".istpipe"," file.",[318,637,638,639,642,643,635],{},"Several macros, with the groups they are in, are a ",[281,640,641],{},"macro pack",": a ",[302,644,645],{},".istmacro",[349,647,649],{"id":648},"export","Export",[277,651,652,653,655],{},"Right-click in the Toolbox, in the ",[281,654,150],{}," list:",[360,657,658,666,672],{},[318,659,660,663,664,341],{},[281,661,662],{},"Export Macro…"," on a macro saves it as a ",[302,665,634],{},[318,667,668,671],{},[281,669,670],{},"Export Group…"," on a group saves it, and what is inside it, as a pack.",[318,673,674,677],{},[281,675,676],{},"Export All Macros…"," on the empty part of the list saves every macro as a pack. It is also a backup of your macros.",[277,679,680],{},"The file keeps the images a macro uses, so it works on any computer.",[349,682,684],{"id":683},"import","Import",[277,686,687],{},"Any of these:",[360,689,690,701,709,715],{},[318,691,692,695,696,698,699,635],{},[281,693,694],{},"File > Import > Macros…",", then choose a ",[302,697,645],{}," or a ",[302,700,634],{},[318,702,703,705,706,708],{},[281,704,589],{}," a ",[302,707,645],{}," file: in the explorer, where packs are listed like any file of your library, or in the file manager of your computer. A dialog says which macros come in, and asks what to do about the ones that are already there.",[318,710,711,712,714],{},"Drag a file onto the ",[281,713,150],{}," list of the Toolbox.",[318,716,717,718,720,721,341],{},"In the explorer, right-click a ",[302,719,634],{}," that is a macro (one you exported) and choose ",[281,722,723],{},"Add to Macros",[277,725,726],{},"A pack goes into a group named after it, so that what comes from two packs does not mix. A macro on its own goes to the top. The groups of the pack, the empty ones too, come with it.",[277,728,279,729,731],{},[302,730,634],{}," that is not a macro (a pipeline made of one group is a macro, any other is not) is refused, and ISF Studio says so.",[349,733,735],{"id":734},"when-a-macro-is-already-there","When a macro is already there",[277,737,738],{},"Each macro has an identity of its own, kept in its file. ISF Studio compares what you import with the macros you have:",[496,740,741,751],{},[499,742,743],{},[502,744,745,748],{},[505,746,747],{},"What it finds",[505,749,750],{},"What happens",[512,752,753,761,769,793],{},[502,754,755,758],{},[517,756,757],{},"Nothing like it",[517,759,760],{},"The macro is added.",[502,762,763,766],{},[517,764,765],{},"The same macro, as it is",[517,767,768],{},"It is left out: nothing changes.",[502,770,771,774],{},[517,772,773],{},"The same macro in another version",[517,775,776,777,780,781,784,785,788,789,792],{},"You choose ",[281,778,779],{},"Replace",", ",[281,782,783],{},"Keep both"," or ",[281,786,787],{},"Leave out",". Replace is what an update is. The copies in your pipelines then show as outdated, and you update them when you want (see ",[286,790,484],{"href":791},"#a-macro-and-its-copies",").",[502,794,795,798],{},[517,796,797],{},"Another macro with the same name",[517,799,800,801,341],{},"You choose the same three. Keep both gives the new one a number: ",[302,802,803],{},"Blur 2",[277,805,806],{},"Nothing is replaced without your word when a choice is asked, and what you replace goes where the old macro was, even if you moved it.",[277,808,809,810,813],{},"Macro packs can also be put online by the project's ",[286,811,160],{"href":812},"\u002Fadd-ons",": the page lists them with the other resources.",[310,815,817],{"id":816},"in-the-editions","In the editions",[277,819,820,821,824,825,828,829,792],{},"Making, arranging, placing and ",[281,822,823],{},"importing"," macros is part of what is free, and has no limit of its own in any edition. ",[281,826,827],{},"Exporting"," macros, as a file or a pack, needs ISF Studio Pro, like the export of shaders and libraries (see ",[286,830,267],{"href":268},{"title":832,"searchDepth":833,"depth":833,"links":834},"",2,[835,839,842,843,844,845,850],{"id":312,"depth":833,"text":313,"children":836},[837],{"id":351,"depth":838,"text":352},3,{"id":401,"depth":833,"text":402,"children":840},[841],{"id":422,"depth":838,"text":423},{"id":458,"depth":833,"text":459},{"id":483,"depth":833,"text":484},{"id":583,"depth":833,"text":584},{"id":620,"depth":833,"text":621,"children":846},[847,848,849],{"id":648,"depth":838,"text":649},{"id":683,"depth":838,"text":684},{"id":734,"depth":838,"text":735},{"id":816,"depth":833,"text":817},"Keep a part of a pipeline as a macro, and place it in any pipeline of any library.","md",null,{},{"icon":153,"title":150},{"title":150,"description":851},"gSL8ulbL1CdgLzAMc-J4MVCjDUq6wDS-gAtFMpVBLow",[859,861],{"title":145,"path":146,"stem":147,"description":860,"icon":148,"children":-1},"Reuse your library inside a graph.",{"title":160,"path":161,"stem":162,"description":862,"icon":163,"children":-1},"Images, video and sounds for your inputs, from the studio or from your devices.",1796047426773]