Jump to content

Equations macro works in 1.6, but not in 1.7


Recommended Posts

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

Here are some images to illustrate this. First the original image:

Before.thumb.jpg.a8d18b0feb3fa2bc48a0a937deefe668.jpg

Then the image with the macro applies, with the parameter set to approx 0.75:

After.thumb.jpg.ece4a02f19ed9b859175d84948de008e.jpg

Then the image opened in the 1.7 beta and the macro applied:

After1.7.thumb.jpg.8d26d44f19df376c6f1486d7c7fbf908.jpg

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

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: Checkerboard512.png.f59f9a15c41a3dc8c31280be437c211b.png

This is with the macro in Photo 1.6: 1126456012_Checkerboard512Wrap.png.3b709aea03dc4bacbb11e96de28427ab.png

And the result from Photo 1.7: Checkerboard512Wrap.png.10c9e0ac3cfee90853aabb2d65010a77.png

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

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

  • Staff

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.

 

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

  • Staff

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

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

  • Staff

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.

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

  • Staff

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.

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

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.