ynput / ayon-maya

Maya addon for AYON
Apache License 2.0
6 stars 6 forks source link

Set instance frame range attribute defaults to current task entity attributes #98

Closed BigRoy closed 3 weeks ago

BigRoy commented 3 weeks ago

Changelog Description

Allow frame range defaults for instances to be based on current task entity attributes

Additional info

Enable the setting: ayon+settings://maya/create/use_entity_attributes_as_defaults image

Testing notes:

  1. Enable/disable the setting ayon+settings://maya/create/use_entity_attributes_as_defaults
  2. Set your maya timeline different than current task entity.
  3. When the setting is enabled, newly created instances should default to frame range of current context task entity.
  4. When the setting is disabled (default for backwards compatibility), the frame range will by default be based off of the timeline.

_This will be the case for all Creators using the collect_animation_defs function. Which is as far as I know all the product types with frame ranges exposed in the publisher UI currently, e.g. pointcache, animation, yeticache, etc._

LiborBatek commented 3 weeks ago

How about to change the settings name to something simpler (I know its just cosmetics but why not to stick to simpler name for clarity)

something like:

Use task context for setting frame range

or similar?

BigRoy commented 3 weeks ago

How about to change the settings name to something simpler (I know its just cosmetics but why not to stick to simpler name for clarity)

something like:

Use task context for setting frame range

or similar?

Haha - on my day off; not even the time to change it with merges this quick! Feel free to create a backlog issue if you hate the wording on the setting label and we can follow up.