We can use timer sentences to return a value between 0 and 1 from time to time,
There are some parameters we can specify into the timer sentences:
- Seed: assign it for different timer can get different phase results
- Freq: make the timer playback faster or slower than others
There is a optional sentences:
- "ping pong": this make the timer result "back and forth" instead of "finish and return"
There are some sentenceswe have "my id" extension:
- "with my id": make different seed for different agents.
Examples
All agents will use same seed.
(Type: Periodic Time)
- peroidic time generate value
Example "timer" sentence in sequential 6 time points
- peroidic time seed:?? generate value
Example "timer seed:1 and timer seed:2" sentences in sequential 6 time points
- peroidic time seed:?? freq:?? generate value
Example "timer seed:1 freq:2 and timer seed:1 freq:0.5" sentences in sequential 6 time points
- ping pong time generate value
The sub option "ping ping" stands for "back and forth", it will backward playback the timer and return the value like ping-pong playback in Maya time slider.
Example "timer and timer(ping ping)" sentences in sequential 6 time points
- ping pong time seed:?? generate value
- ping pong time seed:?? freq:?? generate value
Make another seed for different agents
- peroidic time with my id generate value
Example one "timer with id" sentence with 2 different agents in sequential 6 time points
- peroidic time seed:?? with my id generate value
- peroidic time seed:?? freq:?? with my id generate value
- ping pong time with my id generate value
- ping pong time seed:?? with my id generate value
- ping pong time seed:?? freq:?? with my id generate value