![]() |
![]() |
![]() |
Content Scripting Python ViewportFrom RexWikiThe following example function shows how to enable additional viewport when prim is touched:
def EventTouch(self,vAvatar):
vAvatar.rexSetViewport(command, viewportName, posX, posY, width, height)
Where:
The dimensions are relative, where [0,0] is top left of the screen and [1,1] is bottom right of the screen. CameraThe viewport by default uses the existing camera. You can make the viewport use another camera by using RTT Camera. In that case the rtt camera rendering is disabled and only the actual camera is used by the viewport. When either the viewport or the rtt camera is removed, both the viewport and the rtt camera are removed. To use different camera:
For controlling the camera, see the camera section in the RTT Camera article. |
||
![]() |
![]() |
![]() |



