This topic is for discussing and sharing what you know about editing the JSON file for a draft.
Hey Hops just completely for fun, i just made a small program to get the JSON from a project url and save it into a file. it’s a little pointless at the moment
but was very interesting trying to work out how to try and do it, along with looking things up along the way
I would love to share the code, just at the moment it is very messy and makes no sense but if Hops are interested, would very very much love to try explain
import urllib.request as u…
How to find/edit the JSON file of a draft:
You connect your iPad to a computer, then open iTunes and click the iPad symbol in the top left. Click Apps and scroll down to the section showing apps that can transfer files to a computer. Download the “jSON projects” folder from Hopscotch and edit one of the draft files.
It may be good to log out of your account first, and only open the draft you want to edit. Otherwise, you’ll have a hard time finding the correct draft. You may also want to create a backup of the draft first.
Today, I made a Shortcut which allows the user to modify their Hopscotch JSON project file
Let's get a few things out of the way before I get to the main thingI know that modifying the JSON file isn’t new, there is already a topic on that. However, this Shortcut is the best way to do this on an iOS device.
You don’t need anything except for the two shortcuts, an internet connection (only for checking for updates), and Hopscotch to do this.
It is not a raw editor, but a guided editor (mostly…
(Awesome_Es topic also has a list of blocks and characters)
Cool topic (^^)
One question does the computer have to be a computer or can it be a laptop?
If it can be a laptop then does the laptop have to be a apple laptop or can it be Windows?
Doesn’t matter, as long as you have iTunes and a USB port.
November 5, 2017, 12:27pm
Do you need to know js to edit the json file?
ITunes will work, but if u have iExplorer or iFunBox, it will take way less time to access images or other large files.
Just make sure to use quotes and close your brackets
So about that thing I found, I just saw in the first post but they never talked about it, is the scenes. This is in the code of the app if that is the case, but there is no way in the editor to access them. I think this is the “rooms/layers” they were talking about.
And here is where this topic started
Code & Block (there is an ID in the webplayer file, which is 125)
Which do you think the Change Scene should look like?
Change Scene with specified scene (Top)
Change Scene without specified scene (Bottom)
We already saw the change scene block.
My image or somewhere else
In a project, being used.
Can u send A link 2 me??
Possibly in beta? Idk cuz i can get beta
(And it doesnt work in latest official HS release)
No. It’s in Hopscotch. Beta has basically the December 2015 community.
This old post shows what the block really looks like.
@Petrichor posted the link below so I don’t need to edit it in here.
Here’s a better look at how you pick the scene
iTunes 12.7 doesn’t have the Apps menu anymore. It’s just called File Sharing now.
Never saw that b4
How do u control which scenes the objects r in?
At the moment, since it’s not a complete feature, I believe you need to do it manually in the file.