{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/5843","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/5843/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/5843/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/5843/events","html_url":"https://github.com/mrdoob/three.js/pull/5843","id":53232328,"number":5843,"title":"Editor: ability to load a scene from a URL parameter","user":{"login":"walden-","id":1248919,"avatar_url":"https://avatars.githubusercontent.com/u/1248919?v=3","gravatar_id":"","url":"https://api.github.com/users/walden-","html_url":"https://github.com/walden-","followers_url":"https://api.github.com/users/walden-/followers","following_url":"https://api.github.com/users/walden-/following{/other_user}","gists_url":"https://api.github.com/users/walden-/gists{/gist_id}","starred_url":"https://api.github.com/users/walden-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walden-/subscriptions","organizations_url":"https://api.github.com/users/walden-/orgs","repos_url":"https://api.github.com/users/walden-/repos","events_url":"https://api.github.com/users/walden-/events{/privacy}","received_events_url":"https://api.github.com/users/walden-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-02T00:04:41Z","updated_at":"2015-01-16T15:15:31Z","closed_at":"2015-01-04T21:02:59Z","pull_request":{"url":"https://api.github.com/repos/mrdoob/three.js/pulls/5843","html_url":"https://github.com/mrdoob/three.js/pull/5843","diff_url":"https://github.com/mrdoob/three.js/pull/5843.diff","patch_url":"https://github.com/mrdoob/three.js/pull/5843.patch"},"body":"Hi,\r\n\r\nThis PR makes it possible to:\r\n\r\n - **Load a scene from an URL parameter named \"scene\".**\r\n\r\n   Examples:\r\n     http://wikischool.org/three.js/editor/index.html?scene=../examples/scenes/knot.json\r\n     http://wikischool.org/three.js/editor/index.html?scene=../examples/scenes/boxes.json\r\n\r\n - **Put a simple hash key (based on the URL string without the http(s) part ) in the storage name, so multiple scenes can be loaded and used in the same browser without interference to the scene data.**\r\n\r\n  Example: http://wikischool.org/wiki/test-multiple-scenes\r\n\r\nI feel there is still another issue that needs to be resolved for this work nicely: The localstorage key is not hashed, so any data like the: renderer, camera position / target, etc. are shared between browser views.\r\n\r\nPerhaps some of that localstorage data should be managed by global-defaults and locally-overwriting data. So one localstorage item for global data and then optionally one for overwriting local data. Perhaps this is too complicated though.\r\n\r\nThanks,\r\n\r\nWalden"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/70267371","html_url":"https://github.com/mrdoob/three.js/pull/5843#issuecomment-70267371","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/5843","id":70267371,"user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T15:15:31Z","updated_at":"2015-01-16T15:15:31Z","body":"Well, I guess `#scene=` would also be nice to have."}}