temporary 3DText
Hello to everyone, I need to build a function that show a 3d text for one second every time that the space bar is pressed.
EX: Code:
def show(): Thanks for your help!! |
Hi Marcello,
You can use on vizact.onkeydown(' ',show) to call a function that displays the 3D Text at every one second. request you to pls see to the artice on Timer Events and Fuctions in the documentation Steps: -start the timer on button event usign startTimer Refer Link: http://docs.worldviz.com/vizard/comm...starttimer.htm -Timer will be activated for every one second using ontimer Refer Link: http://docs.worldviz.com/vizard/comm...ct/ontimer.htm -Then last call kill timer after one seconds get over Refer Link: http://docs.worldviz.com/vizard/comm.../killtimer.htm After kill timer then again listen for button event. and folow the steps as mentioned above. Thanx&Regards Mr.Rajnish Vishwakarma Mobile,AR,VR Xenium Digital Pvt ltd,Mumbai |
hi and thanks for your interest.
The links you have sent me are not available anymore. Anyway i know how to use the command vizact.ontimer, the problem is that i don't know how to remove the text after the first time it comes out! |
Refer doumentation and :
Use startTimer and killTimer in co-ordination with ontimer Thanx&Regards Mr.Rajnish Vishwakarma Mobile,AR,VR Xenium Digital Pvt ltd,Mumbai |
Removing the text is a simple call to remove if you don't need this Text instance again:
Code:
#display text Code:
#create/display text |
Reply for ' temporary 3DText'
1 Attachment(s)
Hi M@rcello,
PFA the attachment of the script which i have made for you. The script shows text for every one second when a spacebar is pressed. Its a simple script. Pls go through it. Thanx&Regards Mr.Rajnish Vishwakarma Mobile,AR,VR Xenium Digital Pvt ltd,Mumbai |
Thank you very much Rajnishv, i didn't thought to the chance to create an indipendent function to disable the visibility of the Text 'a priori'.
Well done, and many thanks |
Thanx Marcello:
Also try to use startTimer in co ordination with the vizact.ontimer() ot vizact.ontimer2() function to create your own function.. Thanx&Regards Mr.Rajnish Vishwakarma Mobile,AR,VR Xenium Digital Pvt ltd,Mumbai |
All times are GMT -7. The time now is 07:07 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC