Troubleshooting
Referencing variables of a "Reference"
Started by psykel on .
Sign in or create an account to join the conversation.
Been looking into how to pull this off, seems trivial. Basically I create a references using getObject(), but I want to then reference that items "x" variable, but I seem to not be able too. For reference I would assume this:
What am I missing?
decl self = getobject();
self.x = {0,OSC_ARGS};
but that doesn't compile. I want to use references because I don't want to have to change a ton of script names because this particular object will be duplicated a bunch... What am I missing?
What you're looking for is:psykel wrote:Been looking into how to pull this off, seems trivial. Basically I create a references using getObject(), but I want to then reference that items "x" variable, but I seem to not be able too. For reference I would assume this:
but that doesn't compile. I want to use references because I don't want to have to change a ton of script names because this particular object will be duplicated a bunch...decl self = getobject(); self.x = {0,OSC_ARGS};
What am I missing?
decl self_x = getexpression(self,'x');
self_x = {0,OSC_ARGS};