force unRegisterRedrawViewsCallback ?

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 09 September 2004   #1
Question force unRegisterRedrawViewsCallback ?

Hello all

Well I just learn a few on registerRedrawViewsCallback / unRegisterRedrawViewsCallback.
It's really cool !
But I have a little pb

I explain :
If I restart MAX then evaluate this script :

 fn func1 = 
(
	 print "redraw1" 
)
registerRedrawViewsCallback func1
unRegisterRedrawViewsCallback func1


Nothing happen... and it's logic, because I register then unregister

Well, now if i evaluate this script :

 fn func1 = 
(
	 print "redraw1" 
)
registerRedrawViewsCallback func1
--unRegisterRedrawViewsCallback func1


Something happen (print "redraw1") when the viewport need refresh, because I register...

But now, if I re-evaluate the first script or simply the script :


unRegisterRedrawViewsCallback func1


The redraw callback is always execute.
So, how disable it completly ?
And if itsn't possible, how to prevent this, with a boolean value like isRedraw = true ?

Thanks
__________________
a few things on max

1. You prefer to have a foam leg or an arm of 315 inches ?
2. You prefer to have an ear of 9 pounds or to have 30 fingers at each hand ?
 
Old 01 January 2006   #2
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 05:23 PM.


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