General
How to refer to an object in another interface?
Started by Cumulonimbus on .
Sign in or create an account to join the conversation.
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.
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.
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.