Mr. Bram1 Kerkhofs1 0 Report post Posted January 21, 2019 Hi Edit: It is version 4.4.1, appologiesI'm having a problem with the new version of Caeses.so this code doesn't compile: imagecurve interpolCirccurve() interpolCirccurve{.Setcurve(Curve).setDomain([0.5,1]).setName("halfCurve").SetVisible(0)} it reports:"Error: Line 112 [1,19]: Scopes not allowed inside functions "So the reason why I program like this is: when you have an if-statement, and you want to declare the "curve", but "if blablabla, take curve. Else take curve1" or something alike. When I declare the image curve twice, I get a warning that stuff is declared mutliple times. So this is a way to ommit the warning. Any suggestions how to do this in the new version? Cheers!Bram Share this post Link to post Share on other sites
Stefan Wunderlich 6 Report post Posted January 21, 2019 Hi Bram, Is this code snipet inside a function? We have disabled the scopewise notation inside functions due to technical reasons so you could simply write: imagecurve interpolCirccurve() interpolCirccurve.Setcurve(Curve)interpolCirccurve.setDomain([0.5,1])interpolCirccurve.setName("halfCurve")interpolCirccurve.SetVisible(0) Does this help? CheersStefan Share this post Link to post Share on other sites
Mr. Bram1 Kerkhofs1 0 Report post Posted January 21, 2019 Hi Stefan Thanks for your quick reply.Yes it is in a function. Alright, I adapted it and it works, Thanks! Bram Share this post Link to post Share on other sites