Capture everything inside rectangle to specific size image

I would like to animate a grasshopper slider to capture slices of an object. I have everything scripted correctly but my view port even when sized correctly has a margin when zoomed in. I need my images to be an exact size and the geometry to be in the correct location because i am essentially creating a hacked 3D printing software. the image I have attached shows what I am trying to capture and the image border needs to be the outside most rectangle.

Basically need to create an exact px size image within a rectangle and be able to animate a slider to that exact view-port.

Capture|690x348

Hi Matt - SetZoomExtentsBorder to 1.

-Pascal

1 Like

@MattThornton: would you mind sharing the code?

Thanks