{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/177","repository_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs","labels_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/177/comments","events_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/177/events","html_url":"https://github.com/Microsoft/WindowsUIDevLabs/issues/177","id":188161726,"number":177,"title":"Composition Matrix4x4 ExpressionAnimation Exception","user":{"login":"Pierce913","id":8165342,"avatar_url":"https://avatars.githubusercontent.com/u/8165342?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierce913","html_url":"https://github.com/Pierce913","followers_url":"https://api.github.com/users/Pierce913/followers","following_url":"https://api.github.com/users/Pierce913/following{/other_user}","gists_url":"https://api.github.com/users/Pierce913/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierce913/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierce913/subscriptions","organizations_url":"https://api.github.com/users/Pierce913/orgs","repos_url":"https://api.github.com/users/Pierce913/repos","events_url":"https://api.github.com/users/Pierce913/events{/privacy}","received_events_url":"https://api.github.com/users/Pierce913/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-09T03:45:28Z","updated_at":"2016-11-09T03:45:28Z","closed_at":null,"body":"I am trying to animate a Matrix4x4 using linear interpolation. But this throws an exception.\r\n\r\nException thrown: 'System.ArgumentException' \r\nWinRT information: One or more parameters have not been set on the ExpressionAnimation.\r\nAdditional information: The parameter is incorrect.\r\n\r\nthis is the code snippet:\r\n```\r\nvar originalMatrix = \"origin\";\r\nvar destinationMatrix = \"destination\";\r\nvar amount = \"amount\";                        \r\nvar expression = compositor.CreateExpressionAnimation($\"Matrix4x4.Lerp({originalMatrix}, {destinationMatrix}, {amount})\");            \r\nexpression.SetMatrix4x4Parameter(originalMatrix, visual.TransformMatrix);\r\nexpression.SetMatrix4x4Parameter(destinationMatrix, GlobalTransformDestination.ToMatrix4x4());\r\nexpression.SetScalarParameter(amount, .5f);\r\nvisual.StartAnimation(\"TransformMatrix\", expression);\r\n```\r\n\r\nIt throws the exception on the last line.\r\n\r\nIf i just use\r\n`var expression = compositor.CreateExpressionAnimation($\"{originalMatrix}\");`\r\nit works fine\r\n\r\nIdeas?   "}}
{"actor":{"display_login":"Pierce913"}}