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

Adding shape line width to Essential Graphics adds up to tens of thousands of numbers.

Community Beginner ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

Adding shape line width to Essential Graphics adds up to tens of thousands of numbers.

I would like to keep the maximum value to 150.

 

value = effect("SliderControl")("Slider");
clamp(value, 0, 150);

 

For example, if you do this, it will display fine in After Effects, but when you import it into Adobe Premiere, the entire screen will become white. (The color of the line is white)

 

How can I make the numbers smaller so it also works in Premiere?

TOPICS
Scripting

Views

350

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 ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

A screenshot that does not show us the modified properties of the problem layer in the timeline and the lack of a detailed workflow description leads me to think that there is something going on in your comp that you are not seeing. Select all layers in the project and press the "u" key twice, then start digging in. If you don't find anything, drag or copy and paste a screenshot showing the problem layer's modified properties to the reply field instead of uploading it using the Drag and drop...  button so we can see it in your post.

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 ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

Thank you for your comment.

 

I have attached the Ae screen and the Pr screen after loading essential graphics.

When loaded in Premiere, the entire screen becomes white (stroke).

 

If I apply stroke width to the property without using a slider control, the maximum value will be 32768, which is too large for the stroke width.

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 ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

There is something else going on in your comp. What is the frame size of the Main comp? It will show if you include the Project Panel in your screenshot and have it selected. What are all the modified properties in the layers? Press the 'u' key twice to reveal them. There is something else going on somewhere. We also don't know anything about your Premiere Pro Sequence settings. 

 

You can edit the range for the slider in the Essential Graphics panel so the clamping isn't really necessary. From what I can gather your basic comp should look something like this:

RickGerard_1-1695910253367.png

This is a simple 4K comp with an HD rectangle with a stroke set to 111. I'm editing the range of the slider in the EGPanel. A simple copy and paste or dragging your screenshots to the reply field on the forum instead of uploading them with the Drag and drop here... button makes them easier to see. 

 

If you select all layers in the AE Project file and reveal all modified properties, you might be able to find the culprit by just resetting values. If you can't, upload the AEP or embed some more screenshots.

 

 

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 ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

Thank you for your reply.

I tried doing the same thing, but when I load it in Premiere, the entire screen turns white.

It works fine in AfterEffects.

 

I have attached the AE file.

The mogrt file could not be attached, so please export it.

Thank you.

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 ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

I did not find anything wrong with the AEP or the MOGRT. 

RickGerard_0-1695921803142.gif

The only thing I would suggest would be to reset Layer 2 ("Frame")/Transform/Scale to 100, 100 and modify the size of your rectangle with a layer control slider modified by an expression if you want to keep the horizontal and vertical spacing proportional and maintain the same stroke width. Because you are scaling the shape layer differently, the stroke width is slightly different and looks odd to me. 

 

Here's the expression I would add to the Rectangle1/Rectangle Path 1/Size:

Ctrl = thisComp.layer("controls").effect("Frame Size")("Slider") * .01;
x = thisComp.width*.90 * Ctrl;
y = thisComp.height *.85 * Ctrl;
[x, y]

Add a slider and set the range from 0 to 100, and you'll get something like this:

RickGerard_1-1695922795442.png

I've uploaded the file. I don't see anything wrong. The problem may lie in your Premiere Pro Sequence Settings. Here are mine:

RickGerard_2-1695922960086.png

I hope this helps.

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 ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

LATEST

Thank you very much.

Thank you also for the suggestion of an expression to change the rectangle size.

 

Even when I loaded the aep file I received into Premiere, I still got a white screen, so I think it's a problem with Premiere 😞

The sequence settings are the same...

 

Thank you for checking various things.
I am very grateful to you 🙂

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