ynput / ayon-maya

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

Validate invisibilities of excluded parents (when "include parent hierarchy" is off) #109

Closed BigRoy closed 1 week ago

BigRoy commented 3 weeks ago

Changelog Description

Add validator for invisibilities on excluded parents (when include parent hierarchy is disabled).

Additional info

This validation helps to detect the issue where an animator may have hidden or keyed visibilities on parent nodes for an export where these parents are not included in the export. Because if so, those invisibilities would not be included in the export either, giving a different visual result than what the artist likely intended in their workfile.

Testing notes:

Test both animation and pointcache instances.

  1. Create animation or pointcache instance.
  2. Set up export with "include parent hierarchy" disabled.
  3. On any parent above the objects inside the instance, key the visibility off within the frame range or hide it.
  4. The validator should catch it.

So basically for:

group/ <- key visibilities or hide it
    cube    <- included in pointcache

with "include parent hierarchy" off, only the cube will be exported; hence the visibility on 'group' is not exported along making the resulting output look different.