Page 1 of 1

Questions about C# scripting

Posted: 26 Feb 2013, 12:14
by multimedial
Hello there,

i am a new member on this board and have been working with Ventuz for more than a year now, creating a .NET Remoting software.

I was wondering in this context if there is any way to dynamically create ressources (=nodes) in a Ventuz scene entirely from scripting.

So for instance, can I create a cube node from scripting? If so, how?
And as a follow up question: how would I go about creating a material, shader and texture for the given cube?

What I am missing is some sort of scripting manual, a list or reference of commands one can use when scripting Ventuz in C#.

Ideally, I would like to be able to script everything in a Ventuz scene instead of going through the manual setup process - is this even possible?

Thanks in advance,

best regards,

multimedial

Re: Questions about C# scripting

Posted: 27 Feb 2013, 07:48
by Christian Krix Schmidt
Hi!

Ventuz does not allow dynamic creation/destruction of scene elements. You have to prepare a set amount of nodes/objects in your scene and access/change those from the script.

The scripting in Ventuz is actual not so much scripting as actual full fledged .NET programming. The manual covers the basics of how you combine your custom code with the Ventuz scene. But the actual "scripting" is pure C# (or VB.NET if you like that sort of thing :)). So the scripting manual you are looking for is actually any book or online tutorial on C#.

Chris

Re: Questions about C# scripting

Posted: 27 Feb 2013, 09:42
by multimedial
Hello Christian,

thank you for your answer. I am aware that it is full fledged .NET programming in Ventuz. The bit I was after was that it is not possible to create hierarchy or content nodes from scratch, which I regret a lot.

Yet apparently it seems to be possible to create new node types which can be distributed? If so, one could code functionality into a new node type, then use it as a building block for the scenes...

It seems to me that the part which cannot be done is especially the wiring, meaning piping the value of a given property into another one... right?