• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

X,Y location of Freeform Gradient Points

New Here ,
Jun 12, 2020 Jun 12, 2020

Copy link to clipboard

Copied

Has anyone discovered how to identify the EXACT (x,y) coordinates of the points in a free form gradient?

 

Yes, I know you could drag guides and get generally close, however we are trying to find the exact coordinates. 

 

Any help would be appreciated!

 

Cheers

TOPICS
Draw and design , Feature request , Tools

Views

811

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Beginner ,
Dec 17, 2021 Dec 17, 2021

Copy link to clipboard

Copied

Hi there @ohhhsea , ever found a solution for this?

I'm currently needing to have these coordinates to give to an engineering team. 

 

Cheers!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2021 Dec 17, 2021

Copy link to clipboard

Copied

That may be a feature request:

https://illustrator.uservoice.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2021 Dec 17, 2021

Copy link to clipboard

Copied

There is nothing I know of inside the application to get 100.00% accurate coordinates on freeform gradient stops. You can also use window >> info and hover over the gradietn stop, but that is as accurate as pulling guides, just quicker.

You would need need a script to pull from the code.
@CarlosCanto 

 

Gradients are quite forgiving with the color chanegs being subtle over an area rather than hard stop changes of a noise type gradient. Have to ask: do you really need this level of accuracy?

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 17, 2021 Dec 17, 2021

Copy link to clipboard

Copied

@Mike_Gondek I've got a gradient with over 70 stops and I'm asked to give coordinates for an engeneering team that wants to try and create it by programming. There are a few plug-ins where you can measure different kinds of objects etc. and have them all neatly put out with text, lines and such. So I could draw dots on theplace of one of these freeform gradient stops, but either I'm missing something, or it isn't really suited for the ask. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2021 Dec 17, 2021

Copy link to clipboard

Copied

hi @Mike_Gondek and @Tom Coolen  It might be possible to pull the info out of the file.

 

in this sample I made a triangle with one side sitting on the horizon, applied freeform gradient and left the default 3 points at each corner.

 

then, saved the file uncompressed, then opened it with a text editor and searched for "ColorPoints"

 

as you can see below, the color of each gradient point is listed in each line that ends with a k, the four values are the cmyk values in decimal format

the next line gives you five numbers, the last two are the x,y coordinates of the point. I'm pretty sure the numbers represent the percentage of the size of the shape, so 0.5 would be in the middle of the shape.

 

/SmoothShadingStyle : (Adobe Diffusion Coloring Style) 3 /ColorPoints ,
0 O
0.597222805023193 0 0.883298993110657 0 k
1 w
1 1 0 0.074999953727292 0.949999974130389
/ColorPoint ,
0.885343670845032 0.808224558830261 0 0 k
1 1 0 0.925000030347277 0.949999974130389
/ColorPoint ,
0.088502325117588 0.152040883898735 0.31189438700676 0 k
1 1 0 0.499999992037285 0.100000000032654
/ColorPoint ,

 

since the engineers are writing their own program, give them that portion of the text, they should be able to figure it out.

 

hope it helps

Carlos

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 17, 2021 Dec 17, 2021

Copy link to clipboard

Copied

Thank you very much, going to give this a go. Appreciate your generosity. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 29, 2024 Feb 29, 2024

Copy link to clipboard

Copied

So it would be possible to parse a Illustrator file to access the data related to freeform gradients?

I wanted to find a way to know the position and colors of a selected freeform gradient so its easier to replicate in After Effects, for example.

But since theres no API for that, I'm searching for options and this gave me some hope @CarlosCanto!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 29, 2024 Feb 29, 2024

Copy link to clipboard

Copied

@Manaus yeah, let us know if you find a solution following the steps I described above. thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 30, 2024 May 30, 2024

Copy link to clipboard

Copied

LATEST

No is my short answer but having come up against this problem, I've resolved it by manually building an SVG where I can exactly specify each point of the gradient.  By blending together several gradients, you can achieve a similar effect, which can then be imported into Illustrator for further work.  (May want to import into inkscape first as sometimes Illustrator is as terrible as importing SVG's as it is at exporting them.

 

Here's a link to an example I built for a project, stacking 4 gradients together: https://stackoverflow.com/a/78554074/6312186


Regards, aTomician

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines