Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Automated SceneData property binding

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
User avatar
arthamas
Posts: 31
Joined: 14 Apr 2015, 20:20

Automated SceneData property binding

Post by arthamas » 29 Mar 2018, 16:02

Hi,

My problem is quite simple.

Situation
I have 6 string array which have 100 input each. So If I calculate using my mad math skills, this would mean I have 600 string inputs in total.

Problem
How do I connect all those 600 inputs without using the click and drag method to the scene data window?

Can I connect those inputs using C# script?

Cheers!
Daniel
Professional 3D Integrator

User avatar
lerou
Posts: 345
Joined: 06 Sep 2013, 07:14
Location: Hamburg, Germany

Re: Automated SceneData property binding

Post by lerou » 29 Mar 2018, 16:08

what's your source? You can generate arrays with scripts.

User avatar
arthamas
Posts: 31
Joined: 14 Apr 2015, 20:20

Re: Automated SceneData property binding

Post by arthamas » 29 Mar 2018, 16:25

Hi lerou,

I'm controlling the scene using Director.
So when I generate those arrays with script, can I hook the resulting Array's inputs to the Scene Data?

Cheers,
Daniel
Professional 3D Integrator

User avatar
lerou
Posts: 345
Joined: 06 Sep 2013, 07:14
Location: Hamburg, Germany

Re: Automated SceneData property binding

Post by lerou » 29 Mar 2018, 16:42

use an intermediate format. For instance json. Create a json with your data (json supports arrays) and send it over (one string). Take it apart in your scene.

User avatar
arthamas
Posts: 31
Joined: 14 Apr 2015, 20:20

Re: Automated SceneData property binding

Post by arthamas » 29 Mar 2018, 16:57

Yes that would work but the whole point of using Director is to have a user friendly interface that will be used by the client to input their data.
Is there a way to bind a script property to the scene data using the Kernel for example?

Cheers,
Daniel
Professional 3D Integrator

User avatar
lerou
Posts: 345
Joined: 06 Sep 2013, 07:14
Location: Hamburg, Germany

Re: Automated SceneData property binding

Post by lerou » 29 Mar 2018, 17:02

Sounds like you should write a Director Plugin. It lets you build a custom WPF control and you can programmatically set the scene data.

Post Reply