restart timer with new value

Discussions about SOFTIMAGEs© Interactive Creative Environment©
caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 14:13

restart timer with new value

Post by caledonian_tartan » 07 Aug 2013, 09:27

hello
i'm creating some sort of a grid walker effect with ice strands.

the particles move on a geometry in one direction until the timer ends. then they move in another direction.
so far, so good.
when the timer ends for the first time it gets resetted and start all over again.

but then i would like to use another value as before, as it is already travelling on this vector...

i should count how many times the timer has already finished, as with the "repeat with counter" compound.

any hints?
or a better way to do something like this?
gridwalker.jpg


btw.: i think it's an overall problem (for me) to set a value to last for a few frames then randomize this value and keep the result for a few frames, and again and again...


Edit: here's something.
You do not have the required permissions to view the files attached to this post.
SI 2015 @ WIN7-64

face
Posts: 57
Joined: 10 Jan 2010, 11:28

Re: restart timer with new value

Post by face » 07 Aug 2013, 12:31

Hope i understand it correct ;)

You can define a user value for each particle, can named maybe timerCnt, and at each time the timer has reached his time, add +1 to it.
So you know, how many direction changes each particle has.
With this value you can also select the new direction from an array.

face

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 14:13

Re: restart timer with new value

Post by caledonian_tartan » 07 Aug 2013, 12:51

that was what i had in mind too.
and at each time the timer has reached his time, add +1 to it
unfortunately i cannot really translate that into ice... or is it the same as with "Repeat with Counter" Compound? so using a repeat?
end of brain:
SI 2015 @ WIN7-64

face
Posts: 57
Joined: 10 Jan 2010, 11:28

Re: restart timer with new value

Post by face » 07 Aug 2013, 13:23

It works in an simulated ICE-Tree.

face
You do not have the required permissions to view the files attached to this post.

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 14:13

Re: restart timer with new value

Post by caledonian_tartan » 07 Aug 2013, 13:32

truly

but this just adds one value every frame.

i don't really see how this counts how many time my timer has finished...
SI 2015 @ WIN7-64

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 14:13

Re: restart timer with new value

Post by caledonian_tartan » 08 Aug 2013, 07:09

i guess i'm getting closer. works now!
thanks
timers.jpg
i still find it strange that i needed to customize the "test timer" compound...
to.jpg
You do not have the required permissions to view the files attached to this post.
SI 2015 @ WIN7-64

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 07:44

Re: restart timer with new value

Post by Bullit » 08 Aug 2013, 14:04

Thanks for feedback. Will have to try this.

Edit: is it possible to save the scene with a lesser version?

caledonian_tartan
Posts: 253
Joined: 17 Feb 2010, 14:13

Re: restart timer with new value

Post by caledonian_tartan » 09 Aug 2013, 16:06

basically it's just a grid and a pointcloud with this compound...
Grid_Walker.zip
You do not have the required permissions to view the files attached to this post.
SI 2015 @ WIN7-64

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 07:44

Re: restart timer with new value

Post by Bullit » 10 Aug 2013, 21:24

Thanks