Copy link to clipboard
Copied
Hi,
I hope someone can help 🙂
Is there a way to get information about whether the path item or group has been flipped at some point? Or is it possible to determine if one of two identical path items/groups are mirrored?
Copy link to clipboard
Copied
There is no direct built-in way to test whether two path items are reflections of each other.
Copy link to clipboard
Copied
Yes, this is also the way I´m thinking, but I wanted to be sure, that there is no smarter way 🙂
Copy link to clipboard
Copied
you'll probably need to do the comparison yourself, try reflecting one of the paths, place it on top of the other and see if anything matches (width, height, number of anchors, their positions, etc)
Copy link to clipboard
Copied
hmm...reflecting an object does create a BBAccumRotation Tag with a value of Pi (standard vertical reflect 90 degrees).
Copy link to clipboard
Copied
hmm, yes....true...maybe I can figure out how I can use it.
If the path is reflected and then rotated?
Copy link to clipboard
Copied
May I ask, these tags are arrays. What else is in them?
tags[1], what is it?
Copy link to clipboard
Copied
Tags are name/value pairs you can assign to objects to store information.
Illustrator creates it's own tags as well. Like in this case.
If an object is reflected and rotated you're probably out of luck since the the same tag is used for rotation.
Copy link to clipboard
Copied
@CarlosCanto The BBAccumRotation tag was the first thing I tried. I get one for rotation, but not reflection.
Copy link to clipboard
Copied
that's strange, I get it consistently. Win 10, v25.2
Copy link to clipboard
Copied
I also have one, when reflecting. With Pi value as Carlos said. But it changes if the item is rotated. Flip horizontally gives a value of 0.
Copy link to clipboard
Copied
Just for the sake of sharing, I don't get a BBAccumRotation tag for reflection, whether using the reflect tool or the transform submenu. If I rotate an item and then reflect it, the tag (which I get for rotation) is the same before and after reflection. I can only assume that this is because I'm using CS6.
Copy link to clipboard
Copied
I believe I found the method I can work with. With some adjustments, this function may work.