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

Raster matching on append #2004

Closed
d3v-null opened this issue Sep 6, 2022 · 1 comment · Fixed by #2319
Closed

Raster matching on append #2004

d3v-null opened this issue Sep 6, 2022 · 1 comment · Fixed by #2319
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@d3v-null
Copy link

d3v-null commented Sep 6, 2022

Hey folks,
Well done on creating such a wonderful UI so far. I'm a huge Carta fan.

In v3.0 Global preferences, it's possible to enable WCS matching on append. How feasible would it be to add a similar setting to enable raster matching on append?

I know it's possible to individually enable raster matching on each image, but this becomes tedious when looking at a large number of images.

If it's not feasible to add such a setting, how might one do this with snippets? I had a look at the examples, but it would be great if someone could point me to a reference for the app object.

Thanks.

@veggiesaurus
Copy link
Collaborator

this should be easy enough to add, I think. Good suggestion!

In terms of a reference for the app object, we're working on proper documentation and lots of example for the first v4 beta (end of the year), but in the mean time you can open your browser devtools, go to the javascript console and type app. That should give you some autocomplete help, although it's a stopgap for now.

image
image

For your specific case, here's one way to solve it:

for (const frame of app.frames) {
    app.setRasterScalingMatchingEnabled(frame, true);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Icebox
Status: Closed
Development

Successfully merging a pull request may close this issue.

6 participants