Rotation in a view plane

This is fairly simple to code in Ruby. You can open the Ruby Console and run this code:

model = Sketchup.active_model
camera = model.active_view.camera
point = camera.eye
vector = camera.target-camera.eye
angle = 30.degrees
transformation = Geom::Transformation.rotation(
  point,
  vector,
  angle
)
model.active_entities.transform_entities(
  transformation,
  model.selection.to_a
)

Just replace “30” with the angle of your choice in degrees.

Still I wonder what John managed to express very clearly:

1 Like