cschuller Posted July 15, 2016 Share Posted July 15, 2016 Adding basic calculation to the text input fields of the "Transform" view would be very helpful for technical designs. How shall the feature work: GIVEN a selection (e.g.: node) that can be transformed (see 1) WHEN adding +10 to the X text input field (see 2) THEN calculate new X based on old X +10 (see 3) This shall also work for multiply (*) and divide (/) Link to comment Share on other sites More sharing options...
Robert22 Posted July 15, 2016 Share Posted July 15, 2016 Hi cschuller, That feature already exists. See the first video, near the end of the page, under Quick Tips - "Scale Objects by a Percentage". https://affinity.serif.com/en-gb/tutorials/designer/ Mark Ingram and matt.baker 2 AD 1.5.1.43 / AP 1.5.0.45 Windows 10 Pro 64bit - Intel i7 6700 @ 3.4GHz - nVidia GTX 970 4GB - 32" Monitor 2560x1440 - 32 GB Ram Link to comment Share on other sites More sharing options...
cschuller Posted July 15, 2016 Author Share Posted July 15, 2016 Great. Thanks for the Link. Just the syntax with +=10 is not self explaining and a little bit wired. Link to comment Share on other sites More sharing options...
Robert22 Posted July 15, 2016 Share Posted July 15, 2016 Your welcome. And I agree, it is a bit strange, but it works. Its kind of a short cut programming language thing. If you have a variable, and want to change it you can do this: x+=10 which means, take the value of x, add 10 to it, and make that the new value of x. In other programming languages it would be: x = x + 10 cschuller 1 AD 1.5.1.43 / AP 1.5.0.45 Windows 10 Pro 64bit - Intel i7 6700 @ 3.4GHz - nVidia GTX 970 4GB - 32" Monitor 2560x1440 - 32 GB Ram Link to comment Share on other sites More sharing options...
Dave Harris Posted July 15, 2016 Share Posted July 15, 2016 "+10" is too ambiguous. It might might 10 of the default units. You can use "x +10" if you prefer. x, y, w, h refer to the current position and size. matt.baker and Mark Ingram 2 Link to comment Share on other sites More sharing options...
Robert22 Posted July 15, 2016 Share Posted July 15, 2016 Cool Dave! Thanks for that info! AD 1.5.1.43 / AP 1.5.0.45 Windows 10 Pro 64bit - Intel i7 6700 @ 3.4GHz - nVidia GTX 970 4GB - 32" Monitor 2560x1440 - 32 GB Ram Link to comment Share on other sites More sharing options...
cschuller Posted July 15, 2016 Author Share Posted July 15, 2016 @Dave Yes, I agree. I personally would prefer something like =+10 (more excel like, the = indicates the start of the calculation) The great thing is, the feature exists, thanks and keep it ;-) Link to comment Share on other sites More sharing options...
Dave Harris Posted July 15, 2016 Share Posted July 15, 2016 There is more on this here. Link to comment Share on other sites More sharing options...
Robert22 Posted July 15, 2016 Share Posted July 15, 2016 Thanks a lot for that Dave, very useful! Will that be in the official documentation? AD 1.5.1.43 / AP 1.5.0.45 Windows 10 Pro 64bit - Intel i7 6700 @ 3.4GHz - nVidia GTX 970 4GB - 32" Monitor 2560x1440 - 32 GB Ram Link to comment Share on other sites More sharing options...
Dave Harris Posted July 15, 2016 Share Posted July 15, 2016 Yes, it will be added to the documentation soon. Link to comment Share on other sites More sharing options...
Staff Ben Posted July 15, 2016 Staff Share Posted July 15, 2016 The only short hand we allow is to use "*2" or "/2" - since this can only ever be a relative function.As Dave says, "-10" is ambiguous, it could be intended to be relative or absolute, and so we required you to use += and -=. 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...
cschuller Posted July 15, 2016 Author Share Posted July 15, 2016 @Dave Really cool stuff - Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts