{"action":"created","issue":{"url":"https://api.github.com/repos/metapolator/metapolator/issues/378","labels_url":"https://api.github.com/repos/metapolator/metapolator/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/metapolator/metapolator/issues/378/comments","events_url":"https://api.github.com/repos/metapolator/metapolator/issues/378/events","html_url":"https://github.com/metapolator/metapolator/issues/378","id":65245386,"number":378,"title":"Replacing the CPS of a master","user":{"login":"jeroenbreen","id":6692653,"avatar_url":"https://avatars.githubusercontent.com/u/6692653?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenbreen","html_url":"https://github.com/jeroenbreen","followers_url":"https://api.github.com/users/jeroenbreen/followers","following_url":"https://api.github.com/users/jeroenbreen/following{/other_user}","gists_url":"https://api.github.com/users/jeroenbreen/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenbreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenbreen/subscriptions","organizations_url":"https://api.github.com/users/jeroenbreen/orgs","repos_url":"https://api.github.com/users/jeroenbreen/repos","events_url":"https://api.github.com/users/jeroenbreen/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenbreen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/metapolator/metapolator/labels/documentation","name":"documentation","color":"c7def8"},{"url":"https://api.github.com/repos/metapolator/metapolator/labels/question","name":"question","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"graphicore","id":393132,"avatar_url":"https://avatars.githubusercontent.com/u/393132?v=3","gravatar_id":"","url":"https://api.github.com/users/graphicore","html_url":"https://github.com/graphicore","followers_url":"https://api.github.com/users/graphicore/followers","following_url":"https://api.github.com/users/graphicore/following{/other_user}","gists_url":"https://api.github.com/users/graphicore/gists{/gist_id}","starred_url":"https://api.github.com/users/graphicore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphicore/subscriptions","organizations_url":"https://api.github.com/users/graphicore/orgs","repos_url":"https://api.github.com/users/graphicore/repos","events_url":"https://api.github.com/users/graphicore/events{/privacy}","received_events_url":"https://api.github.com/users/graphicore/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-03-30T16:02:53Z","updated_at":"2015-04-07T16:43:43Z","closed_at":null,"body":"I am now working on going from the situation of a master based on 2 (base)masters (metapolation) to (that same) master based on 3 (base)masters. I wrote a script that rewrites metapolation-2.cps to metapolation-n.cps. So every time a (base)master is added to the designspace, I make a new cps string and replace the cps file with it. \r\n\r\n```js\r\nvar cpsString = $scope.createMultiMasterCPS(instance.masters);\r\nstateful.project.ruleController.write(false, instance.cpsFile, cpsString);\r\n```\r\n\r\nBut something goes wrong, I get \r\n```js\r\nReceiverError: Expected an event of \"change\" or \"delete\" but got \"add\"\r\n```\r\nNot sure if this has got to do with it. I get the error after I do some more `setParameter`, with the new cps.\r\n\r\n(I know the metapolation-n itself is working, because when I create a new master in an existing designspace with already 3 or more basemasters, things work as expected.)"},"comment":{"url":"https://api.github.com/repos/metapolator/metapolator/issues/comments/90641616","html_url":"https://github.com/metapolator/metapolator/issues/378#issuecomment-90641616","issue_url":"https://api.github.com/repos/metapolator/metapolator/issues/378","id":90641616,"user":{"login":"graphicore","id":393132,"avatar_url":"https://avatars.githubusercontent.com/u/393132?v=3","gravatar_id":"","url":"https://api.github.com/users/graphicore","html_url":"https://github.com/graphicore","followers_url":"https://api.github.com/users/graphicore/followers","following_url":"https://api.github.com/users/graphicore/following{/other_user}","gists_url":"https://api.github.com/users/graphicore/gists{/gist_id}","starred_url":"https://api.github.com/users/graphicore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphicore/subscriptions","organizations_url":"https://api.github.com/users/graphicore/orgs","repos_url":"https://api.github.com/users/graphicore/repos","events_url":"https://api.github.com/users/graphicore/events{/privacy}","received_events_url":"https://api.github.com/users/graphicore/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T16:43:43Z","updated_at":"2015-04-07T16:43:43Z","body":"You can generate a new -n file when it's not there. They don't have to be preexisting."}}