如何制作可随图片自动调整形状的Premiere Pro用AE模板
Fix for AE-Premiere Media Replacement Template: Comp Size Not Syncing with Photo
The core issue here is that Premiere Pro's media replacement doesn’t automatically trigger expression-driven composition size changes in Motion Graphics Templates (.mogrt) by default. Here’s how to resolve it:
Step 1: Verify Expression-Driven Comp Size in AE
- Open your AE project and select the target composition.
- Go to Composition > Composition Settings.
- Alt/Option-click the stopwatch next to Width and paste this expression (replace "PHOTO" with your photo layer’s exact name):
thisComp.layer("PHOTO").source.width - Repeat for Height:
thisComp.layer("PHOTO").source.height - Test by replacing the "PHOTO" layer’s source in AE—confirm the comp resizes correctly.
Step 2: Set Up Media Replacement Properly for Export
- Select your "PHOTO" layer and open the Essential Graphics panel (Window > Essential Graphics).
- Drag the layer into the Sources section to create a media replacement control.
- Export the main expression-driven comp via File > Export > Motion Graphics Template, ensuring "Include All Footage" is enabled.
Step 3: Sync Comp Size in Premiere Pro
- Import the mogrt into Premiere and add it to your timeline.
- Replace the media via the Essential Graphics panel. If the comp size doesn’t update:
- Right-click the mogrt on the timeline > Replace With > After Effects Composition.
- In AE, confirm expressions are active, save the project. Switch back to Premiere—the comp size will sync.
Step 4: Troubleshooting
- Ensure your photo layer in AE uses None scaling (no manual scaling applied) so source dimensions are accurate for expressions.
- If you need aspect ratio constraints, modify expressions to use
fit()orfill()(e.g.,fit(thisComp.layer("PHOTO").source.width, thisComp.layer("PHOTO").source.height, [1920,1080])for fixed max dimensions).
Effect Comparison
- Premiere Pro: Original Template Temp Image: Comp size matches temp photo dimensions.
- Premiere Pro: Post Media Replacement: Photo content updates, but comp size stays at original temp image dimensions.
- After Effects: Direct [PHOTO] Source Replacement: Comp size automatically adjusts to new photo dimensions.
内容的提问来源于stack exchange,提问作者kakashechka
相关产品推荐
相关产品推荐

