{"action":"created","issue":{"url":"https://api.github.com/repos/alexrj/Slic3r/issues/3849","repository_url":"https://api.github.com/repos/alexrj/Slic3r","labels_url":"https://api.github.com/repos/alexrj/Slic3r/issues/3849/labels{/name}","comments_url":"https://api.github.com/repos/alexrj/Slic3r/issues/3849/comments","events_url":"https://api.github.com/repos/alexrj/Slic3r/issues/3849/events","html_url":"https://github.com/alexrj/Slic3r/issues/3849","id":219130459,"number":3849,"title":"[Feature Request] Load config from gcode file","user":{"login":"lordofhyphens","id":31754,"avatar_url":"https://avatars3.githubusercontent.com/u/31754?v=3","gravatar_id":"","url":"https://api.github.com/users/lordofhyphens","html_url":"https://github.com/lordofhyphens","followers_url":"https://api.github.com/users/lordofhyphens/followers","following_url":"https://api.github.com/users/lordofhyphens/following{/other_user}","gists_url":"https://api.github.com/users/lordofhyphens/gists{/gist_id}","starred_url":"https://api.github.com/users/lordofhyphens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordofhyphens/subscriptions","organizations_url":"https://api.github.com/users/lordofhyphens/orgs","repos_url":"https://api.github.com/users/lordofhyphens/repos","events_url":"https://api.github.com/users/lordofhyphens/events{/privacy}","received_events_url":"https://api.github.com/users/lordofhyphens/received_events","type":"User","site_admin":false},"labels":[{"id":181825,"url":"https://api.github.com/repos/alexrj/Slic3r/labels/Feature%20request","name":"Feature request","color":"DDDDDD","default":false},{"id":563862339,"url":"https://api.github.com/repos/alexrj/Slic3r/labels/Low%20Effort","name":"Low Effort","color":"f9d0c4","default":false},{"id":446233206,"url":"https://api.github.com/repos/alexrj/Slic3r/labels/UI:%20Misc","name":"UI: Misc","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":{"login":"lordofhyphens","id":31754,"avatar_url":"https://avatars3.githubusercontent.com/u/31754?v=3","gravatar_id":"","url":"https://api.github.com/users/lordofhyphens","html_url":"https://github.com/lordofhyphens","followers_url":"https://api.github.com/users/lordofhyphens/followers","following_url":"https://api.github.com/users/lordofhyphens/following{/other_user}","gists_url":"https://api.github.com/users/lordofhyphens/gists{/gist_id}","starred_url":"https://api.github.com/users/lordofhyphens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordofhyphens/subscriptions","organizations_url":"https://api.github.com/users/lordofhyphens/orgs","repos_url":"https://api.github.com/users/lordofhyphens/repos","events_url":"https://api.github.com/users/lordofhyphens/events{/privacy}","received_events_url":"https://api.github.com/users/lordofhyphens/received_events","type":"User","site_admin":false},"assignees":[{"login":"lordofhyphens","id":31754,"avatar_url":"https://avatars3.githubusercontent.com/u/31754?v=3","gravatar_id":"","url":"https://api.github.com/users/lordofhyphens","html_url":"https://github.com/lordofhyphens","followers_url":"https://api.github.com/users/lordofhyphens/followers","following_url":"https://api.github.com/users/lordofhyphens/following{/other_user}","gists_url":"https://api.github.com/users/lordofhyphens/gists{/gist_id}","starred_url":"https://api.github.com/users/lordofhyphens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordofhyphens/subscriptions","organizations_url":"https://api.github.com/users/lordofhyphens/orgs","repos_url":"https://api.github.com/users/lordofhyphens/repos","events_url":"https://api.github.com/users/lordofhyphens/events{/privacy}","received_events_url":"https://api.github.com/users/lordofhyphens/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-04-04T03:24:38Z","updated_at":"2017-04-05T09:02:51Z","closed_at":null,"body":"This has been asked for a few times over IRC -- the ability to load a GCODE export that Slic3r produced and have it be treated like a config.ini file. It would be convenient for people who routinely keep exports around for backup purposes. \r\n\r\nI also know people tend to upload gcode output from Slic3r in their bug reports, this would obviate the need to have a second config.ini export (which apparently only two out three people can do reliably).\r\n\r\nThis is generally possible because Slic3r already saves the primary print settings as comments at the end of the file. \r\n\r\nFrom my observation, the last blank line in a file signifies the start of the configuration.\r\n\r\nIt would definitely be slower-loading than a regular config.ini import.\r\nThe enhancement would consist of processing an input file and looking for the last newline in the file and processing from there (alternatively, we could check every line for the ; XXXX = YYYY and let the configuration validator deal with the rest). "},"comment":{"url":"https://api.github.com/repos/alexrj/Slic3r/issues/comments/291799340","html_url":"https://github.com/alexrj/Slic3r/issues/3849#issuecomment-291799340","issue_url":"https://api.github.com/repos/alexrj/Slic3r/issues/3849","id":291799340,"user":{"login":"ProfDrYoMan","id":510353,"avatar_url":"https://avatars1.githubusercontent.com/u/510353?v=3","gravatar_id":"","url":"https://api.github.com/users/ProfDrYoMan","html_url":"https://github.com/ProfDrYoMan","followers_url":"https://api.github.com/users/ProfDrYoMan/followers","following_url":"https://api.github.com/users/ProfDrYoMan/following{/other_user}","gists_url":"https://api.github.com/users/ProfDrYoMan/gists{/gist_id}","starred_url":"https://api.github.com/users/ProfDrYoMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProfDrYoMan/subscriptions","organizations_url":"https://api.github.com/users/ProfDrYoMan/orgs","repos_url":"https://api.github.com/users/ProfDrYoMan/repos","events_url":"https://api.github.com/users/ProfDrYoMan/events{/privacy}","received_events_url":"https://api.github.com/users/ProfDrYoMan/received_events","type":"User","site_admin":false},"created_at":"2017-04-05T09:02:51Z","updated_at":"2017-04-05T09:02:51Z","body":"You could use a comment in the first line of the exported G-code to store the byte position where the slic3r configuration lines start.\r\nThen it would be easy to skip() there and not have to read the complete and big C-code file."}}
{"actor":{"display_login":"ProfDrYoMan"}}