Location Hash Routing - setting and using URLs to control your patch @cablesgl
Location Hash Routing - setting and using URLs to control your patch  @cablesgl
Uploaded November 2021 | Updated November 2026, 3 hours ago
In this video we join pandur and steam to learn about Location Hash Route and Set Location Hash operators to control your cables.gl patch.
Similar to deep linking URL's, you can use these operators to work with a URL to set specific states or variables in your patch - for example linking a specific artwork or product in a gallery website or creating a unique URL from a user's interaction that they can share with others.

0:00 - intro and example patch overview
1:42 - rebuilding example patch from scratch
3:32 - Location Hash Route op overview and setup
4:10 - URL interaction with Location Hash Route operator
5:44 - getting a string from object output from Location Has Route
6:25 - string comparison to generate true/false Boolean
6:45 - using URL to switch objects drawn on screen
7:41 - using browser back and forward button to change the variable
8:17 - linking specific URL to control your cables patch
9:10 - using a sidebar to change the URL hash
10:22 - using Set Location Hash operator to change hash route
11:47 - changed URL can be shared to link others to the exact state

link to our Discord:
discord.com/invite/AGTarWv

Documentation Page for Location Hash Route:
cables.gl/op/Ops.Website.LocationHashRoute

Documentation Page for Set Location Hash:
cables.gl/op/Ops.Website.SetLocationHash


Some more information about standards of Location Hashes in browsers:
developer.mozilla.org/en-US/docs/Web/API/Location/hash
w3schools.com/jsref/prop_loc_hash.asp

New to cables.gl? check out our channel and start creating your own WebGL projects for free
cables.gl
Location Hash Routing - setting and using URLs to control your patchdid you know, you can add multiple ops one goAmmoRaycast Operator - creating a simple 3D menu UI - Tutorialsocketcluster tutorialcopy cat(s) live streamArray from Numbers Operator tutorial - byte sizeLuna by Slay BellsAbleton and cables - midi clockImporting GLTF 3D Scenes with Camera positions and animating them in cables.glcables standaloneLivestream - building VJ software in cables - EP/05Shadertoy to cables - part  01
cables_gl |

Location Hash Routing - setting and using URL's to control your patch

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER