Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Invisibility evaluator and keyframed visibility

Invisibility evaluator and keyframed visibility

zewt
Collaborator Collaborator
325 Views
1 Reply
Message 1 of 2

Invisibility evaluator and keyframed visibility

zewt
Collaborator
Collaborator

The invisibility evaluator claims a node even if its visibility is keyframed, as long as the keyframe value is always false. However, if a curve ever has a changing value, invisibility will never claim the node again. Even if the curve
goes back to having a constant value, the node will continue to be evaluated. It seems like animCurve caches whether it's ever had a changing value, probably to avoid having to examine animCurves all the time during EG partitioning.

 

Is there any way to reset this? I have nodes whose visibility gets changed by importing animation clips, and once I import a clip that shows something, it gets evaluated forever, even when I import another clip where it's never visible.  This causes huge performance problems when it's an nCloth that's being hidden.

 

If I cut the keyframes and then paste them back in (which creates a new animCurve) it resets it, but that's tricky to do automatically. Deleting the animCurve and undoing seems to work, but when I tried to do that with MDGModifier it caused a lot of crashes. Connecting to duplicated animCurves also sort-of works, but causes crashes.

 

0 Likes
326 Views
1 Reply
Reply (1)
Message 2 of 2

zewt
Collaborator
Collaborator

I worked around this with a script to recreate recreating all animCurves that affect visibility.  Clearing the selection before doing this seems to avoid the crashes.  It's a wonky workaround and I'm not sure it always works, still looking for a better solution.

 

0 Likes