WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 11-25-2015, 05:47 AM
Seadna Seadna is offline
Join Date: Nov 2015
Posts: 40
Question 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.

MsgPanel = vizinfo.InfoPanel('Loading...',align=viz.ALIGN_CENTER,fontSize=25,icon=False,key=None)

skyactive = 0	
def LoadProcess():
	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:
vizpopup.onMenuItem(LoadItem, LoadProcess)
I'm new to Python so i'm sure its probably something simple.

Any help is much appreciated.
Reply With Quote
Old 12-02-2015, 04:19 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
You could load the model asynchronously and display a loading message until the async event is triggered.
Reply With Quote

loading, message, python, sequence

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remove Oculus warning message? hzhao Vizard 1 10-19-2015 06:50 AM
Bulk loading avatars sleiN13 Vizard 3 07-17-2012 04:14 AM message delay jincheker Vizard 1 08-03-2011 04:16 PM
Timed changing message on screen Saz Vizard 3 06-17-2009 04:14 AM
intersense with 5DT glove sjp Vizard 2 04-06-2009 08:22 AM

All times are GMT -7. The time now is 10:06 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC