Open project in scene in url

I would really like it if I can specify a specific scene I want the project to open in the project url. I specifically want this, because my advent of code 2022 (and 2021) uses scenes for each day, and I would like to be able to link to a specific day.

You can add a url parameter like this

&scene=scene

for example

https://snap.berkeley.edu/snap/snap.html#present:Username=username&ProjectName=project&scene=scene-1

That would be really cool and is a good idea.

I've actually started to make it myself, and so far, it works great. The only issue is that it needs to run after the project loads, otherwise it's not going to do anything.

I want to know, how do you like this?

scene 1 - https://ego-lay-atman-bay.github.io/Snap/snap.html#open:Examples/scenes.xml&scene=scenes
scene 2 - https://ego-lay-atman-bay.github.io/Snap/snap.html#open:Examples/scenes.xml&scene=scene%202
scene 3 - https://ego-lay-atman-bay.github.io/Snap/snap.html#open:Examples/scenes.xml&scene=the%20third%20scene

can you port this to replit so i can see it in action

I'm sorry, but no. Snap is too big to import into replit.

Its not even a gigabyte!! what are you talking about?

Because your trying to import all the versions Snap

If I were to import it to replit manually, it would be a pain to maintain, so I'd rather not go into the trouble of doing it.

Try using the git feature in the editor

https://snap-scenes.joecooldoo.repl.co/snap.html
https://replit.com/@joecooldoo/Snap-Scenes?v=1

@mr_owlssssnap2

What how do I have more than 100 followers

I looked at that, and it's just snap. My code for the scene url parameter is in the branch snap-mod.

i downloaded it directly from your fork?

It's not the default branch. I keep a main branch that is unmodified snap, then I modify snap in a branch, that way I can base new branches off my main branch.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.