Orient model to compass

how do i orient a model to a compass direction?

Does this help? http://docs.mcneel.com/rhino/5/help/en-us/commands/sun.htm

Hmm, David thanks, but that doesn’t seem to do it. I get a “sun not supported by current renderer plug-in”. My current renderer is NxT, which has a sun orientation (date/time/location) option. I guess I’m hoping to find a Rhino command that orients the construction plane in the “world top” orientation to a compass direction, so that the NxT sun orientation jives with the model.

@swyacht,

I don’t have NxT installed, but with Rhino Sun you can use this script below to align your CPlane Y to the sun North direction:

Option Explicit
Call Main()
Sub Main()
	Dim rdk : Set rdk = Rhino.GetPlugInObject("Renderer Development Kit")
	Dim a : a = rdk.SunNorth()
	Call Rhino.ViewCPlane(, Rhino.RotatePlane(Rhino.WorldXYPlane(), a, array(0, 0, 1)))
End Sub

–jarek