Skip to main content
rcraighead
Legend
April 6, 2017
Answered

Math calculations in AI fields

  • April 6, 2017
  • 2 replies
  • 827 views

Is it possible to do a two-step math calculation in AI? For example, I'd like to input dimensions for a line as "(70/2)-2". AI will do the 70/2 but ignores the -2. Is there a way to write this that AI will understand or is this just a two-step process?

This would ultimately be part of an Action. Yes, I know I could do it in a script (if I could write scripts).

Thanks,

Ray

This topic has been closed for replies.
Correct answer JETalmage

No, Illustrator (at least as of CS6) does not resolve multiple math operators in a value field like FreeHand did. In AI, you'd have to commit one operation, then enter the second operation and commit that.

It's one of the refreshing things about Affinity Designer. It not only resolves expressions in its Transform palette fields, but also accepts trig functions, etc.

JET

2 replies

JETalmage
JETalmageCorrect answer
Inspiring
April 7, 2017

No, Illustrator (at least as of CS6) does not resolve multiple math operators in a value field like FreeHand did. In AI, you'd have to commit one operation, then enter the second operation and commit that.

It's one of the refreshing things about Affinity Designer. It not only resolves expressions in its Transform palette fields, but also accepts trig functions, etc.

JET

Doug A Roberts
Community Expert
Community Expert
April 7, 2017

i should give it a try sometime. is there anything significant you dislike about it, JET? downsides?

Larry G. Schneider
Community Expert
Community Expert
April 6, 2017

Ray,

Did you try enclosing the whole statement in parenthese? ((70/2)-2) ?

rcraighead
Legend
April 7, 2017

Larry,

Yes. Does not work.