Copy link to clipboard
Copied
Hello, I use illustrator 24.1.2 and I apply a gradient in a form like this:
& when I save it and open it later, the gradient disappear, and I have only black color:
I don't know why I lost it, I don't know what I have to do (in options maybe?) to keep it in my .ai or .svg file.
Can anyone help me on this?
Hey, I encountered this problem myself.
What i found is that in the compound path there was a floating bezier point.
What i think is happening is that Illustrator can't calculate how to apply a gradient to an object with no 2D parameters, so ends up having to set the entire shape to black.
When i released the compound shape, deleted the floating bezier and then remade my compound path, it was able to apply the gradient upon saving and reopening.
Hope this helps future people like me.
I had a same issue, what worked for me was, there was small path left alone, invisible path that ain't connected to anything, i deleted that. And then I saved it. And boom gradient was there
Copy link to clipboard
Copied
what does Appearance panel show?
Can you repeat a gradient now? If yes, add the gradient to Swatces panel (just click New Swatch button when the object is selected). At least, you'll keep the gradient safe in Swatches.
But to say something more, it's needed to see Appearance panel screenshot.
Copy link to clipboard
Copied
Hello, thanks for your answer; here is the screenshot of my appearance panel:
I can add it to the swatces panel but anytime I save my file et re-open it, it has lost the gradient. It is a probleme because I can't use my form in after effect
Copy link to clipboard
Copied
well, it's strange, indeed.
But to use it as a form (shape) in AfterEffects, it's better to save AI with a flat color and add a gradient in AE, when you'll create a shape from a vector layer. This command converts all original gradients to a flat color (gray).
So the better way is
1. to save AI with any flat color
2. in AE "Create a shape from a vector layer" to animate it like you wish
3. Add a gradient to the shape.
BTW, in this case you will be able to animate a gradient as well.
Copy link to clipboard
Copied
ok thanks for your answer, I will do that in afetr effect indeed.
If you have any clue about my problem on illustrator, don't hesitate 🙂
Best regards
Copy link to clipboard
Copied
could you share a working file? I can't repeat the problem on my system.
Copy link to clipboard
Copied
The gradient was applied to a compound path element. Once the compound path released. The gradient will appear as usual.
In short,
1. Release the compound path
2. Add a gradient to all the objects of your icon
3. Now you can merge the compound elements
Copy link to clipboard
Copied
Same problem here. Create compund path-apply gradient-save- reopen- gradient is gone, replaced with black.
I've created a swatch before saving and that doesn't work.
I've released the compund path but then Illustrator wants to apply the gradient to every item separately.
Anyone else?
Copy link to clipboard
Copied
I can't reproduce that issue.
Please tell us which version, system and hardware you use and exactly which kind of file you save, exactly which kind of gradient and please show a screenshot with gradient panel and gradient.
Copy link to clipboard
Copied
Hey, I encountered this problem myself.
What i found is that in the compound path there was a floating bezier point.
What i think is happening is that Illustrator can't calculate how to apply a gradient to an object with no 2D parameters, so ends up having to set the entire shape to black.
When i released the compound shape, deleted the floating bezier and then remade my compound path, it was able to apply the gradient upon saving and reopening.
Hope this helps future people like me.
Copy link to clipboard
Copied
I had a same issue, what worked for me was, there was small path left alone, invisible path that ain't connected to anything, i deleted that. And then I saved it. And boom gradient was there