Can animations be used in an object's _morph attribute?

The title
Like, can I use that attribute with maybe like timer to get an animated list of frames to display instead of a static morph in the result bubble?

I don’t think so, this script is not dynamic.
untitled script pic - 2026-10-26T195709.807

That’s a shame. I guess it might be too slow if you put a complicated script, though not being able to recreate the process result morph is disappointing

I agree. Maybe there should be a _animate attribute or smth?

not for the object’s shape (morph). But you totally can animate your objects, of course! Same as sprites. Sprites also don’t support “animated shapes” but are very animatable.

What I mean is that, when you click on the object to see the result, whatever’s in the _morph field will be displayed in the result. There’s no way to change what the result bubble shows, even if the value the _morph field would return changed by then.

Ah! I guess now I understand what you mean. When you change an object’s field you want the views that display its custom representation to rerender based on the changed value. Yes, that’s actually something I’m working on right now, haha!

You might have noticed that as of a few days ago I’ve replaced the “box” symbol for ADTs inside variable watchers and list views with their custom representation (the result of evaluating their “_morph” method). For the next round I’m working on the “observe-and-rerender” part, hang on!

Hmmm,
If you Say sprite, then speech bubble, variable watcher, and list viewer are already “live” and reflect changes to the sprite color, rotation, and so on.

Isn’t that liveliness part of the Morphic? Controlled by the FPS property of a Morph.

yep, that’s right, @dardoro , but for ADTs I’m still working on supporting just that.

Is it possible you implement it similar to the way processes are animated

So, now there is some automatic data-binding (that’s how they call “liveness” in the industry) for ADTs supported by variable watchers and list views:

live_objects

Not (yet) for speech balloons and result bubbles. I had that working but took it out again because there were issues with Snap’s concurrency model (remember that you can write anything into the _morph ring, so things can go terribly awry when you re-evaluate the ring every couple of msecs).

That’s actually really cool! You could probably make some game that renders (or maybe even stores state?) using an object like this, which would be a really cool demo.
What happens if you put, say, a wait () secs block in the _morph attribute? Would it hang the renderer for that much time trying to render the block? Or would it work as expected?

the idea is that an object’s shape (“morph”) is a manifestation of its current state, and reacts to state changes. Reactions are immediate and complete, just like a mirror image. Animation happens through gradual, intermediate state change, not on the level of a partial or delayed reaction.

Could i use a combination of that and a new process block to automatically animate it

that’s exactly what my progress bar animation shows, doesn’t it?

And with the new “Pictures” (Costume Composition) library we can now also make better custom data types like rational numbers:

That one is really cool. Cant wait to test this stuff

I guess what I was trying to do here was break Snap!'s internal workings by giving it an unexpected situation. Testing it out I see now putting wait into a ring that will get procesed internally will have no effect, besides maybe a few extra function calls.