Thread: Can someone test this

Reply to Thread
Results 1 to 2 of 2
  1. #1 Can someone test this 
    Join Date
    Jun 2009
    Posts
    2
    On nuke 5.2v1

    Page 436 of the user manual, there is a python exemple for the progress bar.

    task = nuke.ProgressTask("Self Destructing")
    task.setMessage("Deleting files")
    task.setProgress(25)
    if task.isCancelled():
    nuke.message("Phew!")

    When I click on Cancel, I get nothing, just freezing...

    I tried it on 2 computers. Anyone got the same reseult ?
    Reply With Quote  

  2. #2 Lightbulb Nuke | Python Progress Bar 
    This is one OLD thread, and you must have solved it..but for the reference:

    Code:
    import threading
    import time
    def selfDestruct():
      task = nuke.ProgressTask("Self Destructing")
      task.setMessage("Deleting files")
      for i in xrange( 0, 100 ):
        if task.isCancelled():
          nuke.executeInMainThread( nuke.message, args=( "Phew!" ) )
          break;
        task.setProgress(i)
        time.sleep( 0.5 )
    threading.Thread( None, selfDestruct ).start()
    I googled a lot for the same problem, but found no solution, so I hope someone might find it useful
    Reply With Quote  

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Matchmove test
    By maxxkv in forum Work in Progress (WiP)
    Replies: 5
    Last Post: June 16th, 2009, 10:52 AM
  2. on set test key
    By cavekid in forum VFX Supervision / Pre-Production
    Replies: 1
    Last Post: February 4th, 2009, 07:01 PM
  3. Test your Color IQ
    By Seriphu in forum The Pad
    Replies: 22
    Last Post: December 2nd, 2008, 05:30 AM
  4. fume FX test :)
    By MichmaO in forum Gallery
    Replies: 0
    Last Post: November 21st, 2008, 05:20 AM
  5. Postage stamp speed test
    By donat in forum NUKE from The Foundry
    Replies: 5
    Last Post: June 27th, 2008, 07:17 AM
Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts