Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Rollout Timer properties
  RSS 2.0 ATOM  

Rollout Timer properties
Rate this thread
 
46741
 
Permlink of this thread  
avatar
  • Anubis
  • Posted: 30 August 2010 11:41 AM
  • Location: Sofia
  • Total Posts: 433
  • Joined: 30 August 2009 01:50 PM

I detect (tested in Max 9 and 2009) that both “.interval” and “.active” props of the Timer are negligent before the rollout displayed.

rollout tm_test "timer test"
(
   
timer clock interval:500
)
tm_test.clock.interval -->> (often return zero but some time valies like 538983712) ?
tm_test.clock.active off -- try to turn it off
tm_test
.clock.active -->> true (no success)

createDialog tm_test
DestroyDialog tm_test
tm_test
.clock.interval -->> 500 (OK)

-- 
also the .active can be set only while the dialog is open

My question is whether this is a bug or part of the game, thanks.



Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.

Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Probably part of the game. Reason being that until the dialog is actually created the timer doesn’t exist. After the destroy I can only imagine that the destruction actually takes a while - or doesn’t truly happen until the next garbage collection takes place.
I certainly wouldn’t trust the values returned from a component which shouldn’t, by rights, even exist any more.



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 1
/img/forum/dark/default_avatar.png

Thanks Steve, I agree. Now I test to get the value from spinner and see so it return zero, not the actual default value. Thanks again.

Here is something curious :)

rollout data "" (local val 5)
data.val -->> 5
data
.val 12
gc
()
data.val -->> 12 (it survive !)
Author: Anubis

Replied: 30 August 2010 12:24 PM