![]() |
|
#2
|
|||
|
|||
|
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]) |
| Tags |
| links, normalizedtopixels, tooltips |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |