Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swapObjects.js swaps dimensions #9

Open
tjt263 opened this issue Feb 8, 2019 · 0 comments
Open

swapObjects.js swaps dimensions #9

tjt263 opened this issue Feb 8, 2019 · 0 comments

Comments

@tjt263
Copy link

tjt263 commented Feb 8, 2019

Hey John, this is great.
Well, actually.. I don't know what most of them do yet. But I'm excited about it.
I found your repository while scouring Google for a way to swap objects directly, just like your swapObjects.js script. I use it all the time. Adobe ought to hire you, or pay you, or.. something.

Anyway I just noticed a problem with it. Okay, not a problem. It's great. More like.. I'd like to make a variant. See, when you swap two objects, and they have different dimensions, they don't just swap locations, they take on each others sizes/dimensions as well. Which is useful, but I'd like to have a variant where the sizes don't change. I was hoping you could help me. I have some ideas, but no experience with JavaScript.

So I thought instead of taking on new dimensions, like this:


They could just swap their centre coordinates, like this:


To do that, if it's a challenge, maybe we could use something like the Horizontal Align Center & Vertical Align Center functions:


What do you think?

One other note: It currently forces Scale Strokes & Effects, even when it's disabled in the Properties menu:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant