Page 1 of 1

How to refer to an object in another interface?

Posted: 13 Feb 2016 08:38
by Cumulonimbus
Hello,

All in the title really. I have two interfaces, and I want an object in one of them to control the value of X on an object in the other. I've tried referring to it with the object name syntax (interface.object.attribue), but I get a syntax error.

Thanks.

Re: How to refer to an object in another interface?

Posted: 14 Feb 2016 18:48
by MrCorba
You don't have too mention the interface in the syntax. This is because objects in different interfaces can't have the same name. Say you've got an interface containing a fader called FaderA and a second interface with a fader called FaderB. You can just create a script in FaderB and use FaderA.x = x; If they are in a container you'll need to put the container in de name.