Progress Reporting - Is 'DzProgress' Implemented?
Hello All,
Sorry if this is already answered elsewhere but my searches did not produce any hits. I am trying to use the Progress dialog in my Daz script (4.9) and am running into some issues.
1) The documentation says "The new class DzProgress should be used for all progress functionality." When I try to use that in a script I get an error nessage stating that DzProgress is unknown. Can anyone help me understand why this might be? Or is DzProgress simply not implemented yet, despite what the documentation says?
2) The documentation also states that functions like startProgress() and so on were removed, yet these do work; I can display the dialog and update the progress bar without much trouble. What I cannot find is a way to update the info text in the progress dialog as my script runs. Is there a way to update the text?
This is for my SketchUp importer script, which is coming along nicely and working well for the most part; but development is also being held up on a regular basis by issues like this. Any help would be much appreciated.
Regards,
MIke
Comments
Rob has a couple of progress-related sample scripts:
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/general_ui/progress/start
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/general_ui/background_progress/start
Thanks for the pointer. I have seen those examples, and in fact they illustrate my point exactly because they use functionality that is supposedly deprecated / removed. They also do not show how to update the text in the progress dialog. The DzProgress class, which is documented for the C++ SDK, has a 'setInfo()' method that updates the text, so it woud be great if I can find out how to use that class in a script.
Regards,
Mike
The Progress sample (http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/general_ui/progress/start) has been updated.
@ModelerMJ is right..... the docs for DzApp indicate all the global progress methods have been removed (i.e., startProgress(), stepProgress(), etc.) and that the new DzProgress object should be used. But there is NO entry from DzProgress in the scripting docs. The progress samples both use the old global methods (which haven't been removed, despite what the docs for DzApp indicate.)
The problem was (it's been fixed now) that the docs included some infomration that pertained to the SDK, not scripting. For scripting the methods used in the sample are current and the recommeded approach.
Thanks to everyone for their assistance on this, much appreciated!
Regards,
Mike