Need help plz: End detection of a a bunch of launch block

i need help

i want to create a list of actions to run it in parallele

1st, i try this:
image
and i got this:
image

2nd, i try this with same result:
image
and i got:

To put a block in a list, i need to ringify the block
When i ringifi the block: it rignify the var against the value of the var

A way that I've found (and used many times) is to use script variables. I creat a scipt var outside the launch lock, then I just set the var to a specific value at the end of the launch block, which I also check for outside the launch block. Here's an example


This script waits until both launch blocks have finished.

Need help plz !

Would this type of method work for you?
image

That's it !

Thank you !

The old-fashioned "call with inputs" and ring^2 :slight_smile:
untitled script pic (16)

= "ring raised to the power of 2"?

I haven't seen a "grey ring raised to the power of 2" used in a script, yet.

Wow. Have you just invented this (or have you seen this before somewhere else)?

I'm not sure, but i've already used some form of this idea ...

@dardoro
I don't want to run the code, i want to run the code and wait...

I've try 2 different approach, nothing is working...

the 2 approach are at the end in the project

Can you help me plz

Thank's in advance !

Combined with @'ego-lay_atman-bay solution it can be done this way


The "for" loop should be "warped" to allow reliable "done" semaphore handling but it will destroy the expected visual effect: Snap! 7.0.2 - Build Your Own Blocks

Thk's i will try it for sure

It works

It works ! thank you so much !

Thank you !

Your second approach also works

it execute only the last one

No,
"do in parallel" does not yield and all actions are started at once.
Every "360 deg..." starts at the same angle and draws over the shorter lines.
With, non-warped, "for" loop, actions are started successive one by one with a slight delay, forming the fan blade shape.

You're welcome

i put a wait block inside the function:
image
(different delay for each execution)

Pretty cool; it's working perfectly

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.