Accessing TXT field from another rollout...

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  02 February 2007
Accessing TXT field from another rollout...

Ok, I have 3 rollouts on my Rolloutfloater.

This only happens the first time, any time after ive loaded the scipt once it seems to store it in memory.

So the problem is if i try to access something from a different rollout I get the following error.
>> MAXScript Rollout Handler Exception: -- Unknown property: "txtGroupName" in undefined <<

Is there a way to make a rollout global? Or should I assign stuff I need to access between rollouts to new global variables?

A overview of my setup....


The problem seems to be that the functions are before the rollouts? Could the be the problem?

Last edited by Gibbz : 02 February 2007 at 07:04 AM.
  02 February 2007
I would make the rollouts global, and you wouldn't get the
scope errors then.

 global unnamedRollout1 
global unnamedRollout2
rollout unnamedRollout1 "Untitled" width:162 height:72
editText edt1 "" 
on edt1 entered txt do
	 unnamedRollout2.edt1.text = txt
rollout unnamedRollout2 "Untitled" width:162 height:72
editText edt1 "" 
on edt1 entered txt do
	 unnamedRollout1.edt1.text = txt
fltr = newRolloutFloater "test" 178 120
addrollout unnamedRollout1 fltr
addrollout unnamedRollout2 fltr

Last edited by shibumenon : 02 February 2007 at 09:17 AM.
  02 February 2007
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 07:49 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.