Skip to main content
MahaB82A
Legend
November 18, 2022
Answered

Radial Gradient issue

  • November 18, 2022
  • 4 replies
  • 2603 views

Is it possible to turn the Radial Gradient like linear gradient?

 

   

Correct answer Rick Gerard

Radial gradients are always circular. If you start with a simple Ellipse with a gradient fill, delete the default stroke, Group the Ellipse, then add a couple of expressions to control the end point of a gradient and calculate the ratio of the horizontal and vertical dimensions of an Ellipse to modify the Transform/Ellipse/Scale value and add a Stroke to the Group you can get a shape layer with a circular gradient you can control. You will also need to unlink the Size parameter to change just the Y value to make the oval. The Transform Gradient 1/Scale expression reshapes the oval Ellipse to a round one. The Gradient Fill/End expression ties the end point of the gradient to the right edge of the ellipse, and the Stroke added to the Group keeps scale values from distorting the stroked path.

Here are the expressions:

 

// Gradient Fill End Position
[content("Group 1").content("Ellipse 1").content("Ellipse Path 1").size[0]/2, 0]

//Transform Ellipse 1/Scale;
r = content("Group 1").content("Ellipse 1").content("Ellipse Path 1").size;
[value[0], r[0]/r[1] * 100]

 

  Here is it at the extreme:

To rotate the gradient, all you have to do is edit the Transform Ellipse 1/Rotation property.

 

4 replies

Rick GerardCommunity ExpertCorrect answer
Community Expert
November 18, 2022

Radial gradients are always circular. If you start with a simple Ellipse with a gradient fill, delete the default stroke, Group the Ellipse, then add a couple of expressions to control the end point of a gradient and calculate the ratio of the horizontal and vertical dimensions of an Ellipse to modify the Transform/Ellipse/Scale value and add a Stroke to the Group you can get a shape layer with a circular gradient you can control. You will also need to unlink the Size parameter to change just the Y value to make the oval. The Transform Gradient 1/Scale expression reshapes the oval Ellipse to a round one. The Gradient Fill/End expression ties the end point of the gradient to the right edge of the ellipse, and the Stroke added to the Group keeps scale values from distorting the stroked path.

Here are the expressions:

 

// Gradient Fill End Position
[content("Group 1").content("Ellipse 1").content("Ellipse Path 1").size[0]/2, 0]

//Transform Ellipse 1/Scale;
r = content("Group 1").content("Ellipse 1").content("Ellipse Path 1").size;
[value[0], r[0]/r[1] * 100]

 

  Here is it at the extreme:

To rotate the gradient, all you have to do is edit the Transform Ellipse 1/Rotation property.

 

MahaB82A
MahaB82AAuthor
Legend
November 19, 2022

Thanks for the help.

Mylenium
Legend
November 18, 2022

Sorry, I didn't recognize your link as a video. In your case you would create a shape layer group to rotate everything. Select all the items, hit Ctrl+G, then use the rotation transform of the new group.

 

Mylenium 

MahaB82A
MahaB82AAuthor
Legend
November 18, 2022

Upper part of the ghost is not visible. If I can turn the the white part by 90 degree. I assume that I can make upper part of the ghost is visible.

Ghost Video

 

  

Mylenium
Legend
November 18, 2022

Without seeing your timeline or effects stack nobody can tell you exactly need to do.

 

Mylenium 

MahaB82A
MahaB82AAuthor
Legend
November 18, 2022

Is above attached video not enough? 

Mylenium
Legend
November 18, 2022

Rotate the layer, apply a Transform effect, group the shape layer item into another group and use it's transform. Whatever is appropriate here.

 

Mylenium 

MahaB82A
MahaB82AAuthor
Legend
November 18, 2022

I do not want to turn all layer. I want turn inside white part only.