{"action":"created","issue":{"url":"https://api.github.com/repos/wdas/SeExpr/issues/37","repository_url":"https://api.github.com/repos/wdas/SeExpr","labels_url":"https://api.github.com/repos/wdas/SeExpr/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/wdas/SeExpr/issues/37/comments","events_url":"https://api.github.com/repos/wdas/SeExpr/issues/37/events","html_url":"https://github.com/wdas/SeExpr/issues/37","id":150702785,"number":37,"title":"I'm using SeExpr in Natron and Curve() doesn't work as expected.","user":{"login":"3dMalmer","id":18378845,"avatar_url":"https://avatars.githubusercontent.com/u/18378845?v=3","gravatar_id":"","url":"https://api.github.com/users/3dMalmer","html_url":"https://github.com/3dMalmer","followers_url":"https://api.github.com/users/3dMalmer/followers","following_url":"https://api.github.com/users/3dMalmer/following{/other_user}","gists_url":"https://api.github.com/users/3dMalmer/gists{/gist_id}","starred_url":"https://api.github.com/users/3dMalmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3dMalmer/subscriptions","organizations_url":"https://api.github.com/users/3dMalmer/orgs","repos_url":"https://api.github.com/users/3dMalmer/repos","events_url":"https://api.github.com/users/3dMalmer/events{/privacy}","received_events_url":"https://api.github.com/users/3dMalmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-24T21:45:44Z","updated_at":"2016-04-25T15:10:04Z","closed_at":null,"body":"I'm trying to understand why these two things are not doing the same thing:\r\n\r\n$Reds=0.7;\r\n$Hueoffset=curve($H,0,0,1, 0.5,($Reds),1, 1,1,1);\r\n\r\noutputs zero at all values between $H=0 and $H=0,5 then rises to 1 at $H=1\r\n\r\n$Hueoffset=curve($H,0,0,1, 0.5,(0,7),1, 1,1,1);\r\n\r\noutputs zero at $H=0 rises to 0,7 at $H=0.5 and then rises to 1 at $H=1\r\n\r\nObviously both should output the stuff that the second expression does.\r\n\r\nAm I doing it wrong or is this a bug or is it just not possible to use variables as inputs in the Curve function?"},"comment":{"url":"https://api.github.com/repos/wdas/SeExpr/issues/comments/214385088","html_url":"https://github.com/wdas/SeExpr/issues/37#issuecomment-214385088","issue_url":"https://api.github.com/repos/wdas/SeExpr/issues/37","id":214385088,"user":{"login":"brentb","id":143411,"avatar_url":"https://avatars.githubusercontent.com/u/143411?v=3","gravatar_id":"","url":"https://api.github.com/users/brentb","html_url":"https://github.com/brentb","followers_url":"https://api.github.com/users/brentb/followers","following_url":"https://api.github.com/users/brentb/following{/other_user}","gists_url":"https://api.github.com/users/brentb/gists{/gist_id}","starred_url":"https://api.github.com/users/brentb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentb/subscriptions","organizations_url":"https://api.github.com/users/brentb/orgs","repos_url":"https://api.github.com/users/brentb/repos","events_url":"https://api.github.com/users/brentb/events{/privacy}","received_events_url":"https://api.github.com/users/brentb/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T15:10:04Z","updated_at":"2016-04-25T15:10:04Z","body":"It is a limitation of the curve function that variables are not supported for the cvs. This is because the cvs are evaluated at parse time for efficiency. It seems like a bug that the var ref is not reported as an error."}}