the problem is the following: I want to create the outline of a mesh, which works for the regular world planes, but i cannot get the get random orientation / viewport to work.
Hello
you can get camera orientation like that. You could then find a plane.
Up = doc.Views.ActiveView.ActiveViewport.CameraUp
Target = doc.Views.ActiveView.ActiveViewport.CameraDirection
X = doc.Views.ActiveView.ActiveViewport.CameraX