WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-08-2015, 05:17 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The panel is added to the ortho layer so it is positioned in pixel coordinates. The shape is added to the screen and uses normalized screen coordinates. Linking the two will not work. You could get the window size and calculate the pixel coordinates to place the panel at:

Code:
windowSize = viz.window.getSize()
shapePos = self.s.getPosition()
self.panelLink = viz.link(viz.LeftBottom,self.tipTab)
self.panelLink.setOffset([windowSize[0]*shapePos[0],windowSize[1]*shapePos[1],0])
Reply With Quote
 

Tags
links, normalizedtopixels, tooltips


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
Adding custom faces mjabon Vizard 2 04-01-2009 09:34 PM
How do I add custom functions to a custom plugin? reedev Plug-in development 7 02-01-2009 04:39 AM
Custom Drop-Down Menus and Sliders south_bank Vizard 2 05-20-2008 05:27 AM
animating custom faces: in search of "open_mouth" morphs vr_boyko Vizard 1 09-16-2004 11:30 AM
Creating Custom Avatar Heads farshizzo Vizard 22 09-12-2004 10:23 PM


All times are GMT -7. The time now is 09:26 AM.


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