WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   2d text placing to max animation in vizard (https://forum.worldviz.com/showthread.php?t=2130)

kasdeja 07-05-2009 03:23 AM

2d text placing to max animation in vizard
 
Hello all,
I am very very new in vizard. I need little help about something. I have made an animation in 3d max and I have exported it in vizard. From now on animation in vizard is working very well. The question is I want to add 2d texts to this animation which showing in different times. For example between 15-19 seconds 'box' showing up on screen than between 55-59 seconds 'sphere' is showing up. How can I do this?
Thanks in advance.

Jeff 07-06-2009 11:59 AM

You can add text to the screen and then make it visibile or hide it when a timer function is called.
Code:

#Add text to the screen.
text_2D = viz.addText('box', viz.SCREEN )
text_2D.setPosition(.5,.5)
text_2D.visible(viz.OFF)

def showBox():
        text_2D.visible(viz.ON)
        vizact.ontimer2(4,0,text_2D.visible, viz.OFF)

vizact.ontimer2(15,0,showBox)


kasdeja 07-07-2009 01:34 PM

Thanks for your answer


All times are GMT -7. The time now is 10:44 AM.

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