AfterEffects: added toggle for applying values from DB during creation (#6204)

* OP-8130 - After Effects added flag to force values from Asset to composition during creation

This allows controlling setting of values (resolution, duration) from Asset (DB) to the created instance. Default is to set it automatically.

* OP-8130 - Ayon version of Settings for AE creator
This commit is contained in:
Jakub Trllo 2024-02-08 17:13:31 +01:00
parent bd14789ec1
commit 6fa2a85a2d
3 changed files with 6 additions and 2 deletions

View file

@ -29,6 +29,7 @@ class RenderCreator(Creator):
# Settings
mark_for_review = True
force_setting_values = True
def create(self, subset_name_from_ui, data, pre_create_data):
stub = api.get_stub() # only after After Effects is up
@ -96,7 +97,8 @@ class RenderCreator(Creator):
self._add_instance_to_context(new_instance)
stub.rename_item(comp.id, subset_name)
set_settings(True, True, [comp.id], print_msg=False)
if self.force_setting_values:
set_settings(True, True, [comp.id], print_msg=False)
def get_pre_create_attr_defs(self):
output = [

View file

@ -7,6 +7,8 @@ class CreateRenderPlugin(BaseSettingsModel):
default_factory=list,
title="Default Variants"
)
force_setting_values: bool = SettingsField(
True, title="Force resolution and duration values from Folder")
class AfterEffectsCreatorPlugins(BaseSettingsModel):

View file

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
"""Package declaring addon version."""
__version__ = "0.1.2"
__version__ = "0.1.3"