Quantcast
Viewing all articles
Browse latest Browse all 13

Accessing transitions in model object

@phivk wrote:

Great job on Sketch Systems, I’m really enjoying sketching!

While prototyping a simple sketch to model a video installation with some physical interaction, I found myself looking for a way to access an active state’s transitions, in order to render their names as part of a button.

https://sketch.systems/phivk/sketch/077d4a829b1dbb83b2eddff79d431072

As you can see in the sketch, I’m currently hardcoding the transition names "put down headphone" and "pick up headphone" in the render() function and think it would be nice to pull them out of the model.active_states[0] object.

Could you imagine making this data accessible as part of the model object?

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 13

Trending Articles