[{"data":1,"prerenderedAt":852},["ShallowReactive",2],{"navigation_docs":3,"-shaders-input-controls":271,"-shaders-input-controls-surround":847},[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":91,"body":273,"description":840,"extension":841,"links":842,"meta":843,"navigation":844,"path":92,"seo":845,"stem":93,"__hash__":846},"docs\u002F3.shaders\u002F4.input-controls.md",{"type":274,"value":275,"toc":824},"minimark",[276,280,288,387,390,395,422,426,444,448,483,486,537,541,547,579,590,614,617,648,652,688,692,714,718,754,779,782,786,813,816,819],[277,278,279],"p",{},"Right of the code, a panel holds one control for each input of the shader. Show or hide it with the button at the bottom right of the editor.",[277,281,282],{},[283,284],"img",{"alt":285,"src":286,"width":287},"The input controls","\u002Fscreenshots\u002Finput-controls.png",362,[289,290,291,304],"table",{},[292,293,294],"thead",{},[295,296,297,301],"tr",{},[298,299,300],"th",{},"Input type",[298,302,303],{},"Control",[305,306,307,319,337,347,357,367,377],"tbody",{},[295,308,309,316],{},[310,311,312],"td",{},[313,314,315],"code",{},"float",[310,317,318],{},"A slider, and the value.",[295,320,321,326],{},[310,322,323],{},[313,324,325],{},"long",[310,327,328,329,332,333,336],{},"A choice of labelled options declared in ",[313,330,331],{},"VALUES"," and ",[313,334,335],{},"LABELS",".",[295,338,339,344],{},[310,340,341],{},[313,342,343],{},"bool",[310,345,346],{},"A checkbox.",[295,348,349,354],{},[310,350,351],{},[313,352,353],{},"color",[310,355,356],{},"A colour picker.",[295,358,359,364],{},[310,360,361],{},[313,362,363],{},"point2D",[310,365,366],{},"Two values.",[295,368,369,374],{},[310,370,371],{},[313,372,373],{},"image",[310,375,376],{},"A choice of source: a file of the library, a built-in image or video, a camera.",[295,378,379,384],{},[310,380,381],{},[313,382,383],{},"event",[310,385,386],{},"A button that fires once.",[277,388,389],{},"The edge of each control is coloured by type, the same colour the inspector uses.",[391,392,394],"h2",{"id":393},"default-min-max-and-identity","Default, Min, Max and Identity",[277,396,397,398,400,401,405,406,405,409,332,412,415,416,418,419,421],{},"Click an input in the inspector to configure it. A ",[313,399,315],{}," has a number for each of ",[402,403,404],"strong",{},"Default",", ",[402,407,408],{},"Min",[402,410,411],{},"Max",[402,413,414],{},"Identity",". A ",[313,417,363],{}," has two (x, y) and a ",[313,420,353],{}," four (r, g, b, a, each from 0 to 1, with a swatch to see it). Tick a key to write it in the header: a key that is off is not written. A key you switch on starts from a value (a point at the origin, an opaque white), and a field that is not a number is refused with a message.",[391,423,425],{"id":424},"configure-integer-options","Configure integer options",[277,427,428,429,431,432,435,436,332,438,440,441,443],{},"In the input configuration dialog, a ",[313,430,325],{}," input has an ",[402,433,434],{},"Options"," list.\nAdd or remove options and edit their labels, then choose ",[402,437,404],{},[402,439,414],{},"\nfrom the same labelled choices. Existing integer values are preserved when labels\nchange; removing the selected option chooses the first remaining option, or clears\nthe optional property when none remain. A ",[313,442,325],{}," without options can still declare\nan integer default or identity.",[391,445,447],{"id":446},"bind-an-input","Bind an input",[277,449,450,451,454,455,458,459,463,464,466,467,469,470,472,473,476,477,479,480,482],{},"Right-click an input and choose ",[402,452,453],{},"Bind to"," to let a source drive it. The menu lists what can drive that input: the mouse, a pen or a finger (try them in the ",[402,456,457],{},"Pointer"," view of the ",[460,461,160],"a",{"href":462},"\u002Fmedia\u002Fresources#pointer"," activity), a MIDI device (see the ",[402,465,174],{}," view) and an OSC address (see the ",[402,468,179],{}," view). An input that nothing can drive (an ",[313,471,373],{},", an ",[313,474,475],{},"audio",") has no menu, and an input follows one source at a time. A ",[313,478,363],{}," and a ",[313,481,353],{}," are bound piece by piece (see below).",[277,484,485],{},"Drag across the preview and the bound inputs follow:",[487,488,489,504,529],"ul",{},[490,491,492,493,495,496,499,500,503],"li",{},"A ",[313,494,363],{}," follows the pointer in one click: ",[402,497,498],{},"Position"," gives it in the pixels of the picture, ",[402,501,502],{},"Position 0–1"," between 0 and 1. It does not need the dialog below.",[490,505,492,506,508,509,511,512,515,516,518,519,332,522,525,526,528],{},[313,507,315],{}," or a ",[313,510,325],{}," follows a ",[402,513,514],{},"channel"," you pick in the submenu: Position X, Position Y, Pressure, Tilt X, Tilt Y or Twist. A ",[313,517,315],{}," takes a value between its ",[313,520,521],{},"MIN",[313,523,524],{},"MAX","; a ",[313,527,325],{}," takes the option that matches where the channel is between 0 and 1.",[490,530,492,531,533,534,536],{},[313,532,343],{}," is on while the button is down, and an ",[313,535,383],{}," fires once when it goes down.",[538,539,174],"h3",{"id":540},"midi",[277,542,543,544,546],{},"The whole story of the devices, of learning and of what a control does to each type of input is in ",[460,545,174],{"href":175},". In short:",[277,548,549,550,553,554,557,558,561,562,564,565,332,567,569,570,572,573,575,576,578],{},"Choose ",[402,551,552],{},"MIDI · Learn…"," and move a control of your device (a knob, a fader, a button) or play a note: the input takes the first one that comes, from the device that sent it. While it waits, the input is outlined in amber and says ",[402,555,556],{},"Move a control…","; press Escape, or ",[402,559,560],{},"Stop learning"," in the menu, to give up. A ",[313,563,315],{}," follows the control between its ",[313,566,521],{},[313,568,524],{},", a ",[313,571,325],{}," picks the option at that place, a ",[313,574,343],{}," is on from the half of a control or while a note is held, and an ",[313,577,383],{}," fires when a control reaches the half or a note is played. The bindings follow the shader that is in the preview.",[277,580,581,582,585,586,589],{},"A bound input shows what it follows under its control, and its own control is locked. Right-click it again and choose ",[402,583,584],{},"Unbind"," to free it. The bindings are kept: they are written in the hidden ",[313,587,588],{},".isf-studio"," folder of your library, beside the presets, and are there at the next launch. They follow the shader when you rename or move it, are copied with it and go to the trash with it. They are also part of the presets.",[277,591,592,593,596,597,600,601,604,605,608,609,405,611,613],{},"They ",[402,594,595],{},"travel with the shader",", as its stars and its presets do: they are put in a ",[313,598,599],{},".istshader"," you export, and in the ",[313,602,603],{},".istpipe"," file of a pipeline. Whoever opens it finds the inputs bound as you left them. A MIDI control is the one of ",[402,606,607],{},"your"," device: they have to learn it again for theirs (right-click the input, ",[402,610,453],{},[402,612,552],{},").",[538,615,179],{"id":616},"osc",[277,618,549,619,622,623,625,626,628,629,631,632,634,635,637,638,640,641,644,645,647],{},[402,620,621],{},"OSC · Learn…"," and move a control in the application that sends OSC (a fader, a pad, a button): the input takes the address of the first message that moves. It works as MIDI does, and the server turns itself on if it was off. A number is brought to the range of the input (",[313,624,521],{}," to ",[313,627,524],{}," for a ",[313,630,315],{},"), a ",[313,633,343],{}," is on while a flag is true, an ",[313,636,383],{}," fires when it comes on. A ",[313,639,363],{}," can follow ",[402,642,643],{},"one address that sends two numbers",", such as an XY pad. The numbers are expected between 0 and 1; set the range of the sender (0 to 127, for instance) in the dialog below. See ",[460,646,179],{"href":180}," for all of it.",[538,649,651],{"id":650},"the-pieces-of-a-point-and-of-a-colour","The pieces of a point and of a colour",[277,653,492,654,656,657,332,660,663,664,666,667,405,670,405,673,332,676,679,680,332,682,684,685,687],{},[313,655,363],{}," has two pieces, ",[402,658,659],{},"X",[402,661,662],{},"Y",", and a ",[313,665,353],{}," four, ",[402,668,669],{},"R",[402,671,672],{},"G",[402,674,675],{},"B",[402,677,678],{},"A",". Each piece is bound on its own, to the mouse, to its own MIDI control or to its own OSC address (X to one knob, Y to another): right-click the input, and each piece has a submenu of its own, or use the dialog below. A piece is a number between the ",[313,681,521],{},[313,683,524],{}," that the header gives it (0 to 1 when it gives none), and the other pieces keep their value. A point can also follow the pointer as a whole (",[402,686,498],{},", from the right-click menu, no dialog needed); that and its pieces exclude each other.",[538,689,691],{"id":690},"a-button-for-each-item-of-a-list","A button for each item of a list",[277,693,694,695,697,698,701,702,705,706,709,710,336],{},"A list (",[313,696,325],{},") can be bound as a whole, and also ",[402,699,700],{},"item by item",": right-click it, ",[402,703,704],{},"Buttons for the items",", and each item has a submenu to bind it to a MIDI note or control or to an OSC address, which gives the list that item when it is played. See ",[460,707,691],{"href":708},"\u002Fmedia\u002Fmidi#a-button-for-each-item-of-a-list",". The presets can be bound the same way: see ",[460,711,713],{"href":712},"\u002Fshaders\u002Fpresets#bind-a-preset","Bind a preset",[538,715,717],{"id":716},"the-dialog-of-the-interactions","The dialog of the interactions",[277,719,720,723,724,727,728,731,732,735,736,739,740,405,743,746,747,749,750,753],{},[402,721,722],{},"View > Input Interactions…"," (",[313,725,726],{},"Shift+Cmd+K","), ",[402,729,730],{},"Interactions…"," in the right-click menu of an input, or ",[402,733,734],{},"Bindings"," in the header of the input controls (with the number of bindings) opens a dialog that lists ",[402,737,738],{},"what the inputs of the shader in front are bound to",", and nothing else: the input or the piece of it, its source (the mouse, MIDI), the control (",[313,741,742],{},"Pressure",[313,744,745],{},"CC 74 · ch 1",", with a dot that lights when it moves) and the device. ",[402,748,584],{}," frees one, ",[402,751,752],{},"Unbind all"," frees them all.",[277,755,756,757,405,759,332,761,763,764,405,766,405,768,332,770,772,773,415,776,778],{},"To add a binding there, choose the input in the first list (a point has ",[402,758,498],{},[402,760,659],{},[402,762,662],{},", a colour ",[402,765,669],{},[402,767,672],{},[402,769,675],{},[402,771,678],{},"), then what drives it in the second, and press ",[402,774,775],{},"Add",[402,777,552],{}," binding waits for a control: move it, or press Escape to stop. A control that has just been learned says so for a moment, and learning stops by itself: one control, one binding. When the list is long, a search box appears.",[277,780,781],{},"Resetting the inputs also frees them.",[391,783,785],{"id":784},"save-as-defaults-reset","Save as defaults, Reset",[277,787,788,789,792,793,796,797,800,801,804,805,808,809,812],{},"What you tried is not saved in the file until you say so. ",[402,790,791],{},"Save as defaults"," writes the current values as the ",[313,794,795],{},"DEFAULT"," of each input (one undoable step). ",[402,798,799],{},"Reset"," brings the controls back to the ",[460,802,803],{"href":97},"preset"," you selected, or to the defaults when none is selected (the ",[402,806,807],{},"Defaults"," entry of the presets). The sources you chose (images, videos, sounds) and the ",[460,810,811],{"href":175},"bindings"," (mouse, MIDI, OSC) stay: Reset gives the values back, not what drives them.",[277,814,815],{},"Moving a slider changes nothing in the files.",[391,817,96],{"id":818},"presets",[277,820,821,822,336],{},"To keep the state of the controls and come back to it later, use the presets at the bottom left of the panel: see ",[460,823,96],{"href":97},{"title":825,"searchDepth":826,"depth":826,"links":827},"",2,[828,829,830,838,839],{"id":393,"depth":826,"text":394},{"id":424,"depth":826,"text":425},{"id":446,"depth":826,"text":447,"children":831},[832,834,835,836,837],{"id":540,"depth":833,"text":174},3,{"id":616,"depth":833,"text":179},{"id":650,"depth":833,"text":651},{"id":690,"depth":833,"text":691},{"id":716,"depth":833,"text":717},{"id":784,"depth":826,"text":785},{"id":818,"depth":826,"text":96},"Drive the inputs of a shader while it runs.","md",null,{},{"icon":94,"title":91},{"title":91,"description":840},"2H4eVavc-9hfAKaamJzZrOHkjVLbKEWDNKeo9ysvyho",[848,850],{"title":86,"path":87,"stem":88,"description":849,"icon":89,"children":-1},"See a shader run, at the size you choose.",{"title":96,"path":97,"stem":98,"description":851,"icon":99,"children":-1},"Keep the state of the inputs of a shader or a pipeline, and come back to it with one click.",1796047425738]