#1
|
|||
|
|||
Loading Message
Hi folks,
I'm trying to show a loading message when I load a model / point cloud. It should appear as soon as i click ok in the select file dialog box and disappear when the file has been loaded. For some reason i can only get Vizard to display the message and load the file at the exact same time no matter what sequence i put it in the code. I have true using vizact.SEQUENCE and just putting the lines of code in the order i want them to run but the outcome is always the same. Code:
MsgPanel = vizinfo.InfoPanel('Loading...',align=viz.ALIGN_CENTER,fontSize=25,icon=False,key=None) MsgPanel.visible(False) skyactive = 0 def LoadProcess(): MsgPanel.visible(True) def LoadFile(): global Cloud CloudFile = vizinput.fileOpen(filter=[('Point Cloud Files', '*.ply;*.3dc'),('Meshes', '*.fbx;*osg;*.osgb;*3ds')]) Cloud = viz.addChild(CloudFile) if skyactive == 1: sky.disable(viz.RENDERING) LoadFile() MsgPanel.visible(False) vizpopup.onMenuItem(LoadItem, LoadProcess) Any help is much appreciated. |
#2
|
|||
|
|||
You could load the model asynchronously and display a loading message until the async event is triggered.
|
Tags |
loading, message, python, sequence |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to remove Oculus warning message? | hzhao | Vizard | 1 | 10-19-2015 05:50 AM |
Bulk loading avatars | sleiN13 | Vizard | 3 | 07-17-2012 03:14 AM |
viz.info message delay | jincheker | Vizard | 1 | 08-03-2011 03:16 PM |
Timed changing message on screen | Saz | Vizard | 3 | 06-17-2009 03:14 AM |
intersense with 5DT glove | sjp | Vizard | 2 | 04-06-2009 07:22 AM |