sprite sheet maker
Check which animation objects survive a sprite timeline rebuild
Switching characters in a sprite inspector can rebuild a timeline while keeping a generic guide track running. In PySide6, a Python variable referencing a child in a Qt animation group can still exist after the native object is deleted. Clearing a group deletes children it continues to own. Taking a child out first allows a compatible controller to retain it.
Write a short ownership table for the rebuild. Mark each track as disposable, recreated from settings, or detached for reuse. Before clearing the old timeline, take only the objects that need to survive and confirm which new controller holds them. Disposable tracks should be forgotten by any preview registry. Rebuild reusable definitions into fresh objects when their state is cheap to restore.
Test two successive character swaps with a deliberately retained guide animation. Verify it is valid and attached after both swaps. Check validity for the intentionally discarded native child through the framework's validity helper before trying to use its wrapper. The test should also check that an event from the old clip cannot target the new character. technical guide and test fixture separates native object survival from the presence of a Python reference with a minimal reproducible example.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.