I I would like to duplicate a viewport (linked to a camera) and change the rotation of the camera in the new viewport
From the reference I have found VS:GetViewMatrix and VS:SetViewMatrix and managed to get, change and set the rotationXAng parameter but it doesn't change the direction of the camera.
Hoffset = 0.117236
Y =0
viewport = vs.FSActLayer()
VPparams = vs.GetViewMatrix(viewport)
VPparamsList = list (VPparams)
Myoffset = VPparamsList[1]
MyrotationXAng = VPparamsList[2]
MyrotationYAng = VPparamsList[3]
MyrotationZAng = VPparamsList[4]
MyrotationYAng = 45
VpCylR1 = vs.HDuplicate(viewport,Hoffset,Y)
vs.SetViewMatrix(VpCylR1, Myoffset, MyrotationXAng, MyrotationYAng, MyrotationZAng)
VpCylR2 =vs.HDuplicate(viewport,Hoffset*2,Y)
VpCylR3 =vs.HDuplicate(viewport,Hoffset*3,Y)
VpCylL1 =vs.HDuplicate(viewport,0-Hoffset,Y)
VpCylL2 =vs.HDuplicate(viewport,0-Hoffset*2,Y)
VpCylL2 =vs.HDuplicate(viewport,0-Hoffset*3,Y)