{"action":"created","issue":{"url":"https://api.github.com/repos/leozide/leocad/issues/245","repository_url":"https://api.github.com/repos/leozide/leocad","labels_url":"https://api.github.com/repos/leozide/leocad/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/leozide/leocad/issues/245/comments","events_url":"https://api.github.com/repos/leozide/leocad/issues/245/events","html_url":"https://github.com/leozide/leocad/issues/245","id":339233484,"node_id":"MDU6SXNzdWUzMzkyMzM0ODQ=","number":245,"title":"cli issue in bash, parsing camera angle coordinates as array pairs","user":{"login":"nathaneltitane","id":5674757,"node_id":"MDQ6VXNlcjU2NzQ3NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/5674757?v=4","gravatar_id":"","url":"https://api.github.com/users/nathaneltitane","html_url":"https://github.com/nathaneltitane","followers_url":"https://api.github.com/users/nathaneltitane/followers","following_url":"https://api.github.com/users/nathaneltitane/following{/other_user}","gists_url":"https://api.github.com/users/nathaneltitane/gists{/gist_id}","starred_url":"https://api.github.com/users/nathaneltitane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathaneltitane/subscriptions","organizations_url":"https://api.github.com/users/nathaneltitane/orgs","repos_url":"https://api.github.com/users/nathaneltitane/repos","events_url":"https://api.github.com/users/nathaneltitane/events{/privacy}","received_events_url":"https://api.github.com/users/nathaneltitane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-08T15:13:18Z","updated_at":"2018-07-08T17:39:32Z","closed_at":"2018-07-08T17:39:32Z","author_association":"NONE","body":"I've run into an issue where setting camera angle coordinates as lat long values fails to be understood as a parameter by leocad because of the built in array/variable expansion in bash withing single quotes.\r\n\r\n\t\trun_leocad () {\r\n\r\n\t\t\theight=\"4096\"\r\n\t\t\twidth=\"4096\"\r\n\t\t\tsnapshotsuffix=\".png\"\r\n\t\t\tlatlong=${coordinates[position]//\\'/}\r\n\r\n\t\t\tleocad \\\r\n\t\t\t\t-h \"$height\" \\\r\n\t\t\t\t-w \"$width\" \\\r\n\t\t\t\t-i \"${option_prefix}${model_render_name}${view[position]}${snapshotsuffix}\" \\\r\n\t\t\t\t--camera-angles \"$latlong\" \"$1\"\r\n\t\t}\r\n\r\n\t\t\tcoordinates=(\r\n\t\t\t\t\"30 225\"\r\n\t\t\t\t\"30 45\"\r\n\t\t\t\t\"30 180\"\r\n\t\t\t\t\"30 0\"\r\n\t\t\t)\r\n\r\n--\r\n\r\n+ leocad -h 4096 -w 4096 -i gn-001-exia-quarter-front.png --camera-angles '30 45' /media/MEGA/Lego/models/mobile-suits/gn-001-exia/00-gn-001-exia.mpd\r\n\r\n(leocad:15889): Gtk-WARNING **: Unable to locate theme engine in module_path: \"murrine\",\r\nInvalid value specified for the '--camera-angles' argument.\r\n\r\n--\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/leozide/leocad/issues/comments/403303597","html_url":"https://github.com/leozide/leocad/issues/245#issuecomment-403303597","issue_url":"https://api.github.com/repos/leozide/leocad/issues/245","id":403303597,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMwMzU5Nw==","user":{"login":"leozide","id":9685066,"node_id":"MDQ6VXNlcjk2ODUwNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/9685066?v=4","gravatar_id":"","url":"https://api.github.com/users/leozide","html_url":"https://github.com/leozide","followers_url":"https://api.github.com/users/leozide/followers","following_url":"https://api.github.com/users/leozide/following{/other_user}","gists_url":"https://api.github.com/users/leozide/gists{/gist_id}","starred_url":"https://api.github.com/users/leozide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leozide/subscriptions","organizations_url":"https://api.github.com/users/leozide/orgs","repos_url":"https://api.github.com/users/leozide/repos","events_url":"https://api.github.com/users/leozide/events{/privacy}","received_events_url":"https://api.github.com/users/leozide/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T17:39:32Z","updated_at":"2018-07-08T17:39:32Z","author_association":"OWNER","body":"I think you're adding the quotes yourself with the //\\'/ part. "}}
{"actor":{"display_login":"leozide"}}