Page 1 of 1

Automated SceneData property binding

Posted: 29 Mar 2018, 16:02
by arthamas
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!

Re: Automated SceneData property binding

Posted: 29 Mar 2018, 16:08
by lerou
what's your source? You can generate arrays with scripts.

Re: Automated SceneData property binding

Posted: 29 Mar 2018, 16:25
by arthamas
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,

Re: Automated SceneData property binding

Posted: 29 Mar 2018, 16:42
by lerou
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.

Re: Automated SceneData property binding

Posted: 29 Mar 2018, 16:57
by arthamas
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,

Re: Automated SceneData property binding

Posted: 29 Mar 2018, 17:02
by lerou
Sounds like you should write a Director Plugin. It lets you build a custom WPF control and you can programmatically set the scene data.