Scripting dialogue importing

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
edgar.santos
Posts: 1
Joined: Wed Jun 01, 2016 11:15 am

Scripting dialogue importing

Post by edgar.santos »

Hello.

I was wondering if and how is it possible to script the dialogue (database) import process.
Right now, I am using the articy import window and manually importing the dialogue each time I change it and afterwards run my own custom code to do tree analysis, sanitizing, etc... I would like to have a script that does it all. I wouldn't mind that the first time in a project I have to set the paths/parameters in the window but the following times I really want to automatize/script the whole process as much as possible.

Any thoughts?

Thank you
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scripting dialogue importing

Post by Tony Li »

Hi Edgar,

In your editor script, you could open the ArticyConverterWindow and call ConvertArticyProject:

Code: Select all

using PixelCrushers.DialogueSystem.Articy;
...
var articyConverterWindow = EditorWindow.GetWindow(typeof(ArticyConverterWindow), false, "articy Convert");
articyConverterWindow.ConvertArticyProject();
Just make sure to set the paths/parameters beforehand.
Post Reply