I want to align a photo to a key object in Illustrator with automation. When using automation it does not align properly. I tried several times but failed. How do I align an object to a key object using automation?

  • 5
    Hi. Welcome to GDSE. Can you please edit your question and explain the steps you tried, and perhaps post a screenshot showing the problem. Thanks.
    – Billy Kerr
    Oct 5, 2019 at 9:22
  • 2
    You'll need to show some of the automation code. In particular, the code that's causing the problem you're trying to solve. Then, someone here might be able to show where the code is going south and maybe even help you solve it.
    – nocturns2
    Oct 5, 2019 at 18:53

1 Answer 1


Probably the object has empty sub objects at different positions, try removing them before you align. empty sub objects


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.