Hey!
I’m noticing a similar issue in R7 with the script not moving named views. In my case I’m only trying to move views vertically. It moves the camera vertically of the active view, but the named views are not updated. I’m wondering if the cameras are all moved with ViewCameraTarget but then the NamedView camera is not set to the new camera position? Is there another method to set a new camera location or is something amiss with ViewCameraTarget’s set functionality?
Here is my copy of your script where I just move the views down -5,000 as a test.
import rhinoscriptsyntax as rs
def translateAllViewsVert(num):
vec = rs.CreateVector(0,0,num)
cView = rs.CurrentView()
nViews=rs.ViewNames()
if nViews == None: return
for view in nViews:
CT = rs.ViewCameraTarget(view)
rs.ViewCameraTarget(view,CT[0]+vec, CT[1]+vec)
rs.CurrentView(cView)
def promptAndMove():
translateAllViewsVert(-5000)
if __name__=="__main__":
promptAndMove()