Hello everyone,
I am working with a graph made by sixtysecondrevit to align views. It works very well until the crop lines are different. Is there a way to copy the crop lines between viewports?
Hello everyone,
I am working with a graph made by sixtysecondrevit to align views. It works very well until the crop lines are different. Is there a way to copy the crop lines between viewports?
What does your codeblock error say? You’re probably on a newer version that requires two inputs for Flatten.
Can you show the node preview for all your nodes? I’m guessing there’s either an issue with your selected viewports or the GetCropBox node doesn’t accept viewports.
Yeah. I think you need to get the View from the Viewport.

Do you have any suggestions for how to translate the views into viewports?
Thanks =)
I looked at this post but they didn’t have a solution either.
Woah that is an older graph with some out-of-date nodes. Apologies for that. Some of the additional issues with it might be the fact that steamnodes is outdated and some of my original nodes in the graph are as well.
Here is how I would actually go about doing that these days:
and the graph in action:

and the graph itself:
ViewportCentering.dyn (39.9 KB)
Aside from that thought process I would maybe consider having a “Viewport Centering Scope Box” in my project and set all the views crop region to that Scope Box prior to running. That is probably the most stable and consistent way to handle this.
Maybe try a transaction.end node after the setcropbox curves?
Although, manipulating the actual cropbox curves makes me nervous. I would honestly do the following:
The scope box is a much better idea, thank you so much!