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
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










