Iterating Through Lists for Crop Boxes

I am attempting to reset crop boxes from a list of bounding boxes pulled in my code. I get the current crop box sizes, temporarily override them to a different size, then I want to change them back. I am able to have them resize, but if I have 4 crop bounding boxes, it sets all 4 views to the last bounding box size. I have tried to get this to work recursively with a LoopWhile node with no luck. I think I am stuck trying to figure out how to pass item 1 from the view list and item 1 from the bounding box list to the View.SetCropBox node then stepping to item 2. I’m not sure what portion of the Dynamo graph would be useful here, so I am including this as a starting point. thanks!

You have quite a few unnecessary (by my guess) list levels in your list structure that’s probably overcomplicating things. You should be able to flatten both lists since they align 1-to-1 or set your list levels to @L1 for both inputs.

@Nick_Boyts Those are the default levels. And it seems flattening them does not resolve this issue. I still get the same result of all crop boxes getting set to the last one in the list.

And if you set the list levels to @L1 and @L1?

@Nick_Boyts That seems to have done the trick. Didn’t know that was a thing! Thank you!