Make 2D Parallel View - Camera Rotation

Hi all,

I have a box rotated by different angles in 3D space. For this Box I am using a Drafthorse plugin to create a two detail on a layout that are supposed to show two boxes elevations.

To crate two details I am using “Make 2D Parallel View” component to make two views that are shown on picture below.

The thing is that after I make two views and two details, on the layout details are in a slope and are not showing the box horizontally.

My question is, is it possible maybe with C# to control a rotation angle of a camera for a specific detail?

@jokamm is there maybe already some option in the plugin to control camera roation?

That way after creating a detail, I would calculate the angles of rotation and change rotation parameter of that specific detail.

Thanks a lot for all your help!

test_Box.gh (16.1 KB)
test_Box.3dm (53.1 KB)

or to simplify a question. Is there a currently possibility with Grasshopper to create a detail view on a object in space in such way that camera of the view is aligned with custom input plane?

@Faruk_100 I don’t have Drafthorse installed, but one way at least that I would know of is that you create a Model View with the same plane and give it some name. After baking it will appear to the Saved View tab.

From there it can be assigned as a view in detail in Rhino. Or maybe referenced by name in your layout creation process in gh.

thanks for the suggestion.

Somehow backed views work when they are assigned to details manually. But when I do it in Grasshopper using plugin results are different.

I have tried using this C# method to set backed view to a detail but it seems not to work. I am not sure if there is some other method for this

test_Box.3dm (108.2 KB)
test_change_detail.gh (8.1 KB)

@Faruk_100 the NewDetail and ModifyDetail components both take “Model View” inputs. These can be defined within Grasshopper, as shown in the attached example, or using Named Views that are generated in Rhino or baked from Grasshopper. Since view creation and management are now included in the native Grasshopper component sets, I have avoided trying to manage them through Drafthorse.
DH_Details_ByRelativeView_Example.gh (48.1 KB)

@jokamm I am using Drafhorse version 1.1.21 and I have to situations that are not working correctly:

  1. If I create Layout_1 (the only layout in the document) and I query that layout in order to create a detail on it, I get error that layout does not exist

If I create a few more pages, then “New Detail” component creates the detail on one of those pages but not on the “Layout_1”

Do you know why this is happening?

  1. Second point is that “New Detail” component does not add a saved view to a detail object. It creates a detail on some layout, but the view that exist in the document and that I assign to a detail is not assigned in the Rhino file after detail is created

Thanks a lot for all your help