Accessing other rollouts?

Hi.

Today, I'm writing a script that uses a couple of editText objects, buttons, and an external INI containing values. What I'm trying to do is to put a different rollout with "load default profile" option (as a button). It's all going great, but when the button is pressed and values are updated, I want to change the text in one of the editText boxes - to update the value displayed there.

I tried to insert a edt_name.text = newvalue in the section where the btn_profileload is pressed (it's in a different rollout), but it outputs me an error "property 'text' is undefined". This works when the button and the script is in the same rollout as the editText which I want to update, but not in a different rollout.

Is there some way to access an object (editText) from another rollout? Any "root.object" options?

Thanks in advance.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kuroiei's picture

Already solved! Adding the

Already solved! Adding the rollout name before the operator helped.

McGreed's picture

Also declare the rollout as a

Also declare the rollout as a local helps.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.