 |
Re: Multiple Methods in CLI
Started by graunke at 07-01-2008 0:37. Topic has 6 replies.
|
|
07-01-2008, 0:37
|
graunke
Joined on 11-08-2005
Posts 13
|
|
|
Hi Ventuz-Community,
I have a short question about CLI remoting.
We are producing a demo for election graphics right now and everything is working so far. There is only a slight problem.
Our scene has 50 (election, remember?) externalized methods to start the animation of 50 different objects. If I want to start several of these animations at once, I send a CLI command for every animation. Unfortunately that doesn't seem to be fast enough to give reproducible results. There are slight timing differences.
In .NET remoring there is a InvokeMethods, which would probably do the trick, but unfortunately we are not using .NET. Is there a way to do this using CLI?
If I always had to start all 50 animations, I could use an Event-Node that triggers all the others, but I have to change dynamically which animations I start.
Could I do it with an internal script? Looking into that right now but just not there yet.
Cheers from sunny Cologne,
Stefan
|
|
|
|
|
Report
|
|
|
|
07-02-2008, 9:33
|
Karol

Joined on 05-15-2005
Posts 281
|
Re: Multiple Methods in CLI
|
|
|
|
|
Hi Stefan,
as you already assumed, this is not possible via CLI. This is only possible via .Net Remoting or OSC.
Best Regards karol
|
|
|
|
|
Report
|
|
|
|
07-02-2008, 12:51
|
carlblundell

Joined on 12-19-2006
Cardiff, Wales
Posts 32
|
Re: Multiple Methods in CLI
|
|
|
|
|
Hi Stefan!
Good to see you going straight for the big one with Ventuz!
We produced a 'chamber' with 120 animated 'members' for one election. We used long delimited strings to control them - one for colour and one for animation state. Each person was a numbered hierarchy container, so new which data to extract and extracted their positions in the room from a spreadsheet.
We could then animate everything just by updating the two strings. Very fast.
Cheers
Carl
|
|
|
|
|
Report
|
|
|
|
07-02-2008, 13:03
|
carlblundell

Joined on 12-19-2006
Cardiff, Wales
Posts 32
|
Re: Multiple Methods in CLI
|
|
|
|
|
Oops - typo. ' so KNEW which data to extract...'
Carl
|
|
|
|
|
Report
|
|
|
|
07-02-2008, 13:31
|
graunke
Joined on 11-08-2005
Posts 13
|
Re: Multiple Methods in CLI
|
|
|
|
|
Hi Carl,
so this is basically a way to circumvent that we can't pass arrays as an argument to Ventuz. Interesting idea.
We solved the problem by pure force now. It seems that on an fast machine we get all the CLI messages into Ventuz in time.
Thanks for the answer,
Stefan
PS Had any good Mojitos lately?
|
|
|
|
|
Report
|
|
|
|
07-02-2008, 14:04
|
carlblundell

Joined on 12-19-2006
Cardiff, Wales
Posts 32
|
Re: Multiple Methods in CLI
|
|
|
|
|
Stefan,
Yes - it works well. XML is another way of doing it, but when the quantity of XPath nodes reaches a certain point, a revalidation of the XML data can take more than a frame. The update isn't async (as far as I know) so animations can glitch.
Keeping on Ventuz topics; yes, a Mojito is by far the best drink consumed when programming Ventuz, and no, I haven't had one as good as those found in Cologne, although I do have a rather nice fresh crop of mint growing in the garden.![Drinks [D]](/emoticons/emotion-46.gif)
Regards
Carl
|
|
|
|
|
Report
|
|
|
|
07-02-2008, 14:31
|
graunke
Joined on 11-08-2005
Posts 13
|
Re: Multiple Methods in CLI
|
|
|
|
|
Looked into the whole thing again and now I use a script in the scene to receive commands and fire the animations respectively.
"001010101001010100101011101001" -> Script with evaluation in the Validate-method -> Selective Multiple Triggering
Works perfectly.
Cheers,
Stefan
|
|
|
|
|
Report
|
|
|
|
|
 |