Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starting an animation with the network #18

Closed
forresto opened this issue Oct 2, 2013 · 4 comments
Closed

starting an animation with the network #18

forresto opened this issue Oct 2, 2013 · 4 comments

Comments

@forresto
Copy link
Member

forresto commented Oct 2, 2013

Re: #9 (bang!=>iip)

The clock animation now starts with the network, but I'm still not sure if this is the right way to do it. Kick's IN should be a bang, which shouldn't be settable in the ui. If it is settable in the ui, then we don't need Kick (just ban).

Do we need a different component that will just send one bang on network start? Pure Data calls this loadbang.

Re: meemoo/dataflow#62 (hiding inputs)

Now that inputs are hidden when connected you can stop the clock but can't start it again. (You can by changing the text in Kick IN, but that should be a bang.)

@bergie
Copy link
Member

bergie commented Oct 2, 2013

I'd handle this via meemoo/dataflow#78

@forresto
Copy link
Member Author

forresto commented Oct 2, 2013

That would be useful for more than just graph exports.

I'd vote for not hiding the inputs fields on connection (meemoo/dataflow#62), rather making another step (checkbox) to actually save an IIP. Then a checkbox on a bang port means loadbang.

@bergie
Copy link
Member

bergie commented Nov 20, 2013

Easy way for autostarting animations is to 'sidestep' the initial bang... you can modify the Clock graph for instance so that it is actually started by a core/Repeat node that receives a regular IIP (say, a string saying true, the contents of bangs don't matter) that then is sent to the in port of dom/RequestAnimationFrame, like so:

screenshot 2013-11-20 at 11 06 32

This has the effect of autostarting the animation.

@bergie bergie closed this as completed Nov 20, 2013
@forresto
Copy link
Member Author

So core/repeat can be used like Pure Data's loadbang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants