John Rostron Posted April 25, 2019 Share Posted April 25, 2019 I wrote a macro to convert an image using a Cartesian to Polar conversion. It worked well in 1.6 and I describe it here. I have just tried it in the 1.7 beta and it no longer works. The output is a series of concentric colours, as if just the central axis has been rotated. I have tried running the original macro and also re-creating the macro with the same Equations. John Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050 Link to comment Share on other sites More sharing options...
John Rostron Posted April 26, 2019 Author Share Posted April 26, 2019 Here are some images to illustrate this. First the original image: Then the image with the macro applies, with the parameter set to approx 0.75: Then the image opened in the 1.7 beta and the macro applied: Here is the macro used in each case: PolarQuadrant.afmacro John Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050 Link to comment Share on other sites More sharing options...
John Rostron Posted April 29, 2019 Author Share Posted April 29, 2019 I have been trying other macros in 1.7 which rely on the Distort > Equations filter. None of them involving trigonometrical functions work. I have tried some without trig functions and they seem to work OK. I used a simple checkerboard as a starting point: This is with the macro in Photo 1.6: And the result from Photo 1.7: This is the macro. It is for wrapping an image around a bottle: WrapAround.afmacro A final comment. I imported this macro into Photo 1.7, then exported it . I then imported it into Photo 1.6. It loaded OK, but would not work. (it did nothing. No error messages.) John Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050 Link to comment Share on other sites More sharing options...
Tschens Posted April 29, 2019 Share Posted April 29, 2019 Obviously, macros from version 1.6 do not work with 1.7. Also discussed here: https://forum.affinity.serif.com/index.php?/topic/78232-problem-with-macro/ Unfortunately, no solution from the developers yet. It's a pity. Link to comment Share on other sites More sharing options...
John Rostron Posted April 29, 2019 Author Share Posted April 29, 2019 6 hours ago, Tschens said: Obviously, macros from version 1.6 do not work with 1.7 As mentioned in my second posting here, those macros I have tried that do not utilize trigonometric functions do seem to work properly, including those using Filters > Distort > Equations. I have not tried all my macros though. John Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050 Link to comment Share on other sites More sharing options...
Staff Ben Posted May 2, 2019 Staff Share Posted May 2, 2019 I've posted on your other link re the use of trig functions. There have been some changes - trig functions either must take angle values, or now return angle values. This currently defaults to dealing in degrees, not radians. I can't recall now what the trig functions used to do. I have made a lot of changes between 1.6 and 1.7 to expressions - unit types have been tightened up. ie, distances and angles cannot be mixed up. John Rostron 1 SerifLabs team - Affinity Developer Software engineer - Photographer - Guitarist - Philosopher iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395 MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300 iPad Pro 10.5", 256GB Link to comment Share on other sites More sharing options...
Staff Ben Posted May 2, 2019 Staff Share Posted May 2, 2019 I tell a lie - the distortion filters appear to be dealing in Radians. It might be that 1.6 was treating the atan as degrees and now it is radians. Like I say - a lot has changed... SerifLabs team - Affinity Developer Software engineer - Photographer - Guitarist - Philosopher iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395 MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300 iPad Pro 10.5", 256GB Link to comment Share on other sites More sharing options...
John Rostron Posted May 2, 2019 Author Share Posted May 2, 2019 2 hours ago, Ben said: I tell a lie - the distortion filters appear to be dealing in Radians. It might be that 1.6 was treating the atan as degrees and now it is radians. Like I say - a lot has changed... My recollection is that the original function I used worked in degrees. This was probably why I needed the 100. I will need to revise my other macros using trig functions! John Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050 Link to comment Share on other sites More sharing options...
Staff Ben Posted May 3, 2019 Staff Share Posted May 3, 2019 I'm thinking that an option to use radians or degrees might be useful. Will see when we can do something about that. I'm happy to default it to degrees for now though. Mark Ingram and jc4d 2 SerifLabs team - Affinity Developer Software engineer - Photographer - Guitarist - Philosopher iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395 MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300 iPad Pro 10.5", 256GB Link to comment Share on other sites More sharing options...
Staff Ben Posted May 3, 2019 Staff Share Posted May 3, 2019 Hold off revising your macros. If it was degrees in 1.6, we'll make that the default. I'll add the options to use Radians at a later date. John Rostron 1 SerifLabs team - Affinity Developer Software engineer - Photographer - Guitarist - Philosopher iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395 MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300 iPad Pro 10.5", 256GB Link to comment Share on other sites More sharing options...
Recommended Posts