Move EVERYTHING relative to origin


Is there any way to move everything in a file (geometry on layers that are on or off, locked objects and layers, cameras, named views) relative to the origin?

I’m working on a building project that is fairly developed and now need to move the building down to a new height relative to the Rhino origin.

Essentially, I want to set a new Rhino origin and leave everything in my scene where it is, but I don’t think that’s possible is it?


(Marc Gibeault) #2

Would a new CPlane at the wanted origin would work for you? You can use a Universal CPlane so that all the viewports’ CPlanes are relative to each other.


Hi Marc,
I’m using visualArq and the aim is to get the visualarq levels showing correctly relative to the origin, so i really need to move the origin, or everything else within the file.


A script could do this, probably with the exception of named views, which might be hard to change - I’m not sure that just moving the cameras/targets by the same displacement would be correct…



The following Python script is perhaps a bit simplistic, but you can try it… It will move all geometry in the file from one point to another, including anything locked or hidden, lights etc. It also translates all views found in the file, including named views… However, as you mention VisualArc - I do not know what it will do with plug-in data, it has the potential to wreak havoc with your file if something goes wrong, so use with caution.


import rhinoscriptsyntax as rs

"""Script by Mitch Heynick, 18 September 2013.
Moves everything in the file from a base point to a new point.  
Moves all geometry, lights, etc. including locked and hidden objects. 
Also translates all named views by the same vector as the objects
Save your file before doing this, no guarantees!"""

def TranslateAllViews(vec):
    if nViews==None: return
    for view in nViews:

def MoveEverythingInFile():
    oPt=rs.GetPoint('Current "origin" - Point to move all geometry FROM')
    if not oPt: return
    nPt=rs.GetPoint('New "origin" - Point to move all geometry TO')
    if not nPt: return
    if objs==None: return



Hi Mitch,

Wow, that looks great thanks! Now, to try it on a real file…