WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-25-2016, 10:50 AM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
Is that possible to change the scale and position of vizmenu?

I am wandering how to change the scale and position of the vizmenu

In the tutorial, it teaches us how to add vizmenu but when i write the code "menu.setScale([2]*3)", it came out there is no setScale attribute to menu.
Reply With Quote
  #2  
Old 06-26-2016, 12:33 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
By default, the menu is aligned to the left of the window. It also can be aligned to the center:

Code:
menu = vizmenu.add()
menu.setAlignment(vizmenu.CENTER)
You can change the font size used by vizmenu to scale menus up/down. The default font size is 16:

Code:
#Scale the menu up
vizmenu.MENU_FONT_SIZE = 20
Reply With Quote
Reply


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
Mapping position data to a scaled transform tokola Vizard 6 09-16-2015 02:45 PM
<node3d>.save() position and rotation torbeng Vizard 7 04-18-2012 09:17 AM


All times are GMT -7. The time now is 12:14 AM.


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