Model Resource Change

Is there a way to change a model’s geometry file, or an animation file, for a new one, after the original was loaded?

Example, if I loaded this model…

self.BoogerBear  = Actor(MYGameDIR+"datacab/animals/bear/BB-model", {"BoogerIdle1a":MYGameDIR+"datacab/animals/animsBB/BB-idle1a"}

Now lets say I wanted to use a different geometry file for my actor. Instead of BB-model.egg, I want to use BB2-model5.egg.

Lets say I also want to change the BB-idle1a.egg to BBx-idle1g.egg

How would I go about doing that? I don’t want to use another Pointer. In other words, I want to keep self.BoogerBear if possible, just update it with new data.

I wonder if I could just rewrite the same variable but with a different Actor load call? But the originals might get trap in memory…

This is an interesting reading related to this problem.

So I guess I have to perform a “garbage collection” or what I would call it, “a memory dump” then reload the same data sources under the same variable…

Interesting…

IDK…

Worth a try I guess…

:unamused: