Rotate geometry to camera position

Is it possible to rotate any geometry to camera? Like dot object behave. For eg. I want to set perspective view and rotate all stars to camera. Is there a way to read camera position in grasshopper?stars_to_camera.3dm (34.6 KB)
image

Here’s a script I use to orient planes (surfaces) to the camera. You can probably pass those closed planar curves through this, and it will output surfaces. Then dupborder after you have created the new star surfaces facing the camera.

Srf_Rot-to-Cam.gh (14.3 KB)

2 Likes

Thanks!

You could also use Viewport Properties from Human plugin like the attached, but you’ll need to trigger when you update your active perspective viewport…(It seems auto update option is not working well in R7)


Face object to Camera_re.gh (12.2 KB)

1 Like

HI
You can try the Bubalus_GH plugin.

RotateGeometryToCamera.rar (1.8 MB)

1 Like