Is there a command to disable global displacement calculation without disabling per object?

I have a big file with lots of objects, and I have to work mostly on it the check for interference and etc during modeling, I also have to generate a few renders from time to time, and to get a better result I applied displacement to various objects. however, every time i move the camera, rhino recalculates the displacements, the structure of layers is in such a way that I can’t easily group the displacement on objects.

I searched the command wiki for no success, but my question is, is there a way to disable the displacement calculation globally without disabling object by object, so rhino doesn’t have to recalculate every time i move the camera around?

I know wireframe does that, but I find it pretty challenging to model with wireframe view.


import Rhino
import scriptcontext as sc
import rhinoscriptsyntax as rs
from System import Convert
on = rs.GetBoolean("Displacement", ("On", "No", "Yes"), (False))[0]
id = Rhino.Render.CustomRenderMeshProvider.DisplacementId
for obj in sc.doc.Objects.GetObjectList(Rhino.DocObjects.ObjectType.AnyObject):
    if Convert.ToBoolean(obj.GetCustomRenderMeshParameter(id, "texture")):
        obj.SetCustomRenderMeshParameter(id, "on", on) (441 Bytes)

1 Like

Thank you