{"action":"created","issue":{"url":"https://api.github.com/repos/musselwhizzle/Focus-Points/issues/4","repository_url":"https://api.github.com/repos/musselwhizzle/Focus-Points","labels_url":"https://api.github.com/repos/musselwhizzle/Focus-Points/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/musselwhizzle/Focus-Points/issues/4/comments","events_url":"https://api.github.com/repos/musselwhizzle/Focus-Points/issues/4/events","html_url":"https://github.com/musselwhizzle/Focus-Points/issues/4","id":198569194,"number":4,"title":"Pentax K-1 support","user":{"login":"Knubbel","id":8947374,"avatar_url":"https://avatars.githubusercontent.com/u/8947374?v=3","gravatar_id":"","url":"https://api.github.com/users/Knubbel","html_url":"https://github.com/Knubbel","followers_url":"https://api.github.com/users/Knubbel/followers","following_url":"https://api.github.com/users/Knubbel/following{/other_user}","gists_url":"https://api.github.com/users/Knubbel/gists{/gist_id}","starred_url":"https://api.github.com/users/Knubbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knubbel/subscriptions","organizations_url":"https://api.github.com/users/Knubbel/orgs","repos_url":"https://api.github.com/users/Knubbel/repos","events_url":"https://api.github.com/users/Knubbel/events{/privacy}","received_events_url":"https://api.github.com/users/Knubbel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-01-03T21:09:22Z","updated_at":"2017-01-05T10:20:32Z","closed_at":null,"body":"Hi, to add support for the Pentax K-1, I suggest oyu do the following (I am not sure how to do this here):\r\n\r\n1) add a directory called \"RICOH IMAGING COMPANY, LTD\"\r\n2) add a file called \"PENTAX K-1.txt\" in that folder\r\n3) add the following text in that file:\r\n\r\n\r\n```\r\nfocusPointDimens = {300, 250}\r\n\r\n\r\n\r\n-- numbers are makernotes:AFPointSelected  (0x000e AFPointSelected)\r\n-- top row\r\n1 = {2787, 1832}\r\n2 = {3235, 1832}\r\n3 = {3672, 1832}\r\n4 = {4120, 1832}\r\n5 = {4565, 1832}\r\n\r\n-- upper row\r\n6 = {2361, 2145}\r\n7 = {3235, 2145}\r\n8 = {3672, 2145}\r\n9 = {4116, 2145}\r\n10 = {4565, 2145}\r\n11 = {4990, 2145}\r\n12 = {4990, 2145}\r\n\r\n-- center row\r\n13 = {1900, 2450}\r\n14 = {2350, 2450}\r\n15 = {2787, 2450}\r\n16 = {3223, 2450}\r\n17 = {3687, 2450}\r\n18 = {4120, 2450}\r\n19 = {4560, 2450}\r\n20 = {4994, 2450}\r\n21 = {5446, 2450}\r\n\r\n--lower row\r\n22 = {2346, 2780}\r\n23 = {2787, 2780}\r\n24 = {3231, 2780}\r\n25 = {3664, 2780}\r\n26 = {4120, 2780}\r\n27 = {4560, 2780}\r\n28 = {4986, 2780}\r\n\r\n-- bottom row\r\n29 = {2794, 3100}\r\n30 = {3235, 3100}\r\n31 = {3650, 3100}\r\n32 = {4105, 3100}\r\n33 = {4553, 3100}\r\n```\r\n\r\n\r\nI assume it is necessary to change/enhance the core code of the plugin dependend on manufacturer, since for Pentax cameras, the relevant focuspoint information is stored in the metadata called \"makernotes:AFPointSelected\"  (0x000e). This is different from the Nikon metadata field."},"comment":{"url":"https://api.github.com/repos/musselwhizzle/Focus-Points/issues/comments/270610997","html_url":"https://github.com/musselwhizzle/Focus-Points/issues/4#issuecomment-270610997","issue_url":"https://api.github.com/repos/musselwhizzle/Focus-Points/issues/4","id":270610997,"user":{"login":"Knubbel","id":8947374,"avatar_url":"https://avatars.githubusercontent.com/u/8947374?v=3","gravatar_id":"","url":"https://api.github.com/users/Knubbel","html_url":"https://github.com/Knubbel","followers_url":"https://api.github.com/users/Knubbel/followers","following_url":"https://api.github.com/users/Knubbel/following{/other_user}","gists_url":"https://api.github.com/users/Knubbel/gists{/gist_id}","starred_url":"https://api.github.com/users/Knubbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knubbel/subscriptions","organizations_url":"https://api.github.com/users/Knubbel/orgs","repos_url":"https://api.github.com/users/Knubbel/repos","events_url":"https://api.github.com/users/Knubbel/events{/privacy}","received_events_url":"https://api.github.com/users/Knubbel/received_events","type":"User","site_admin":false},"created_at":"2017-01-05T10:20:32Z","updated_at":"2017-01-05T10:20:32Z","body":"Thanks, I will run that in a minute. First I would like to share something I found on Adobe forums, which might be helpful here as it is about funny LR Lua syntax:\r\n\r\n> on Windows systems, LrTasks.excecute() is tricky:\r\n> - substitute \\ by \\\\\\ (this is a Lua issue)\r\n> - surround each pathname that has a space in it with double-quotes (\")\r\n> - substitute  > by ^> \r\n> - in addition, surround the whole commandline with double-quotes\r\n> \r\n> Besides that your program path doesn't look correct. It should be:\r\n> C:\\programs\\dcrawps64.exe\r\n> and therefore in your Lua code, you have to use:\r\n> C:\\\\\\programs\\\\\\dcrawps64.exe\r\n> "}}
{"actor":{"display_login":"Knubbel"}}