Page 1 of 1

SetVariable(variable, <another_variable>) sequencer command... possible?

Posted: Fri Jun 21, 2019 11:44 pm
by Abelius
Hi there, long time no see.

I'm curious (and this may be quite basic) if it is possible to set a variable's value to another variable's value, with a sequencer command?

More specifically, a string variable...

I've tried

Code: Select all

SetVariable(variable, speaker);
...but it just assigns the word speaker, instead of the Actor's name. :|

I've also written...:

Code: Select all

SetVariable(variable, var=speaker);
...which gives the var=speaker value, and...:

Code: Select all

SetVariable(variable, [var=speaker]);
...which gives a nil value.

So, am I missing something?

Btw, I'm calling these commands from a sequencer shortcut.

Thanks.

Re: SetVariable(variable, <another_variable>) sequencer command... possible?

Posted: Sat Jun 22, 2019 7:33 am
by Tony Li
Hi,

You can't use 'speaker', but you can use the variables 'Actor' and 'Conversant' like this:

Code: Select all

SetVariable(variable, [var=Actor])