ScriptSpot

Forum topic · General Scripting

Accessing other rollouts?

By kuroiei · 2011-06-23

Description

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 (2)

kuroiei · 2011-06-23

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

McGreed · 2011-06-24

Also declare the rollout as a local helps.