Invisibility evaluator and keyframed visibility
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.