Additional settings for After Effects presets

Settings file

Depending on the preset type, you can specify how the plugin should add the preset to the timeline. To do this, you need to add the “.settings” file to the package, which will contain the necessary options. It is a simple text file you can create with any text editor (such as Notepad).


Supported options

The following options are currently supported:

  • Fitting the scale of the layer to the user’s project.
  • Fitting the composition or sequence resolution to the user’s project.
  • Enabling the “Collapse Transformations” for a preset’s pre-composition.
  • Adding time remapping keyframes to a preset’s pre-composition.
  • Adding custom expression to time remapping of preset precompose.
  • Displaying the Duration Bar in the plugin.
  • Settings according to preset type.

Fitting the scale of the layer to the user’s project

By default, preset layers are added to the timeline with a scale value of 100%.

To add the preset layer scale with the most suitable size, specify one of the listed lines in the “.settings” file.

fitScaleTo = frame
fitScaleTo = frameWidth
fitScaleTo = frameHeight
fitScaleTo = frameFill

 

fitScaleTo = frame // The preset layer completely fills the frame. In this option, the image’s aspect ratio will probably be changed.

fitScaleTo = frameWidth // The preset layer is scaled to the width of the frame, while the aspect ratio does not change.

fitScaleTo = frameHeight // The preset layer is scaled to the height of the frame, while the aspect ratio does not change.

fitScaleTo = frameFill // The preset layer will completely fill the frame (either in width or height) without changing the aspect ratio.


Fitting the composition or sequence resolution to the user’s project

If this option is specified in the settings, the composition resolution of the preset will be fitting to the resolution of the user composition. This is especially true for transition presets or responsive design scenes.

To enable this option, add the following line to the “.settings” file:

fitResolutionToFrame = true

Enabling the “Collapse Transformations” for a preset’s pre-composition

If your preset contains any adjustment or vector layers, it will probably be helpful to enable the “Collapse Transformations” option for its preset’s pre-composition.

To enable this option, add the following line to the “.settings” file:

collapseTransformations = true

Adding time remapping keyframes to a preset’s pre-composition

This option adds time-remapping keyframes and a special expression to the preset’s composition. This allows you to change the animation speed of a preset by simply increasing or decreasing the duration of the preset’s layer along the timeline.

To enable this option, add the following line to the “.settings” file:

timeRemapKeyframes = true

Adding custom expression to time remapping of preset precompose

This option will allow you to add any expression for the Time Remap parameter of the preset pre-composition.

To use this option, add the following line to the “.settings” file. After the equal sign, enter any text that should be used as an expression.

timeRemapExpression = time

Displaying the Duration Bar in the plugin

You can enable the “Duration Bar” with speed markers in the plugin, allowing the user to change the animation speed of your preset in real-time.

To enable this option, add the following line to the “.settings” file:

durationBar = true

Settings according to preset type

By default, presets are added to the timeline as a regular layer. Thus, the composition in which many other layers will also be added to the timeline as a layer (pre-compose).

If you need to add a preset other than a regular layer, you can include this information in your package. To do this, in the “.settings” file, specify one of these lines:

presetType = layer
presetType = compLayers
presetType = cutTransition
presetType = overlapTransition
presetType = prproj (coming soon)
presetType = mogrtFx (coming soon)

 

presetType = layer // The preset is added “as is” like a regular layer.

presetType = compLayers // All layers from the preset’s composition are added to the timeline.

presetType = cutTransition // Specify this line if your preset is a Cut Transition.

presetType = overlapTransition // Specify this line if your preset is a Overlap Transition.

 


Settings for the entire package or for a specific category

The “.settings” file should default be located in the root directory of your preset package. The options specified in this file will affect all categories and nested subcategories of presets.

 

If in any category or subcategory, you need to specify other options, add the additional settings file to the desired directory. In this case, the plugin will ignore the options from the settings file at the package’s root.

Leave a Reply

Your email address will not be published. Required fields are marked *