{"action":"created","issue":{"url":"https://api.github.com/repos/DoomRater/DrizzleScript/issues/28","labels_url":"https://api.github.com/repos/DoomRater/DrizzleScript/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/DoomRater/DrizzleScript/issues/28/comments","events_url":"https://api.github.com/repos/DoomRater/DrizzleScript/issues/28/events","html_url":"https://github.com/DoomRater/DrizzleScript/issues/28","id":63486793,"number":28,"title":"Automatically detect diaper type","user":{"login":"DoomRater","id":4010432,"avatar_url":"https://avatars.githubusercontent.com/u/4010432?v=3","gravatar_id":"","url":"https://api.github.com/users/DoomRater","html_url":"https://github.com/DoomRater","followers_url":"https://api.github.com/users/DoomRater/followers","following_url":"https://api.github.com/users/DoomRater/following{/other_user}","gists_url":"https://api.github.com/users/DoomRater/gists{/gist_id}","starred_url":"https://api.github.com/users/DoomRater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoomRater/subscriptions","organizations_url":"https://api.github.com/users/DoomRater/orgs","repos_url":"https://api.github.com/users/DoomRater/repos","events_url":"https://api.github.com/users/DoomRater/events{/privacy}","received_events_url":"https://api.github.com/users/DoomRater/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoomRater/DrizzleScript/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-22T04:05:05Z","updated_at":"2015-03-28T22:34:08Z","closed_at":null,"body":"This is one of those lovely user friendly options that are a pain to actually decide how to implement.  A good example is detection by prim name.  Did the user change the name of the diaper?  Do we check for case or ignore it?  Or detection by prim count.  the Fluffems is changing the number of prims it is these days due to needing additional prims for things like wet and mess prims.  Also, who's to say a person doesn't want to add or remove the memory core to the whole diaper?  That right there affects prim types.\r\n\r\nI'm going to as a test try to detect by name, and documenting what names DrizzleScript looks for in the object's root prim or Main prim to help people who want to simply drag and drop into their diaper to get crinkling.  Obviously, I want to look for something that has \"Nezzy's\", \"Kawaii\", or \"Diaperz\" and assume if we found that then the diaper type is Kawaii.  Meanwhile, if we find \"Pied\" or \"Piper\" I'd assume it's the type is PiedPiper.  And \"Fluffems\" in the name should be a dead giveaway that it is a Fluffems type.\r\n\r\nAs a last resort, i ONLY want to try and detect the type if the diaper type was unspecified.  Otherwise, use an explicit definition as a force override for the detection behavior."},"comment":{"url":"https://api.github.com/repos/DoomRater/DrizzleScript/issues/comments/87324012","html_url":"https://github.com/DoomRater/DrizzleScript/issues/28#issuecomment-87324012","issue_url":"https://api.github.com/repos/DoomRater/DrizzleScript/issues/28","id":87324012,"user":{"login":"DoomRater","id":4010432,"avatar_url":"https://avatars.githubusercontent.com/u/4010432?v=3","gravatar_id":"","url":"https://api.github.com/users/DoomRater","html_url":"https://github.com/DoomRater","followers_url":"https://api.github.com/users/DoomRater/followers","following_url":"https://api.github.com/users/DoomRater/following{/other_user}","gists_url":"https://api.github.com/users/DoomRater/gists{/gist_id}","starred_url":"https://api.github.com/users/DoomRater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoomRater/subscriptions","organizations_url":"https://api.github.com/users/DoomRater/orgs","repos_url":"https://api.github.com/users/DoomRater/repos","events_url":"https://api.github.com/users/DoomRater/events{/privacy}","received_events_url":"https://api.github.com/users/DoomRater/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T22:34:08Z","updated_at":"2015-03-28T22:34:08Z","body":"Decided instead to try and detect by prim creator.  These are dead giveaways about what diaper it is supposed to be.  Also, in the case of Kawaii diapers, there's a closed source plugin that requires the Kawaii diaper to be the root prim anyway in order  to work.  So we're going to use that instead."}}