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 / Show user Progress with text
  RSS 2.0 ATOM  

Show user Progress with text
Rate this thread
 
22494
 
Permlink of this thread  
avatar
  • Location: Germany
  • Total Posts: 173
  • Joined: 06 March 2008 09:37 PM

Hi there,

I have a small script which does something with all polygons.
I integrated a progressbar showing the how much of the polys are performed.
This works well.
I also want to show the user a text such as “Poly 7 of 1200 progressed”. I tried this with a edittext but it is not updated until the process is done.
So while progressing it shows nothing. When it is done there is written “Poly 1200 of 1200 progressed”.
Any tips how I get this updated?



Regards Matthias

----
C2Q 9650, 8GB Ram
3dsmax 8, 2009, 2010 and 2011

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

Try a Label instead of an Edittext.

Also, please put your Max version (and brief system specs) in your signature - it saves us having to ask every time.

If this isn’t what you want, you’ll have to give us a bit more information.

(
local test
    
rollout test 
"test"
    
(
    
label Label01 "Press the button!" style_sunkenedge:true width:156 height:16
    button btnSelect 
"Do It!" 
    
on btnSelect pressed  do
        (
        for 
1 to 50000 do
            
Label01.caption "Poly " as string " of 50000 processed"
        
)
    )
    
try (
destroyDialog test) catch()
CreateDialog  test 
)


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: 0
avatar

Works perfect. My signature is edited.



Regards Matthias

----
C2Q 9650, 8GB Ram
3dsmax 8, 2009, 2010 and 2011

Replies: 0