CaptureToBitmap not working in new Python in R8

I made python script for create picture from rectangle. It works in old python. But not in new one.
Can you help me please guys ?

printscreen.gh (278.3 KB)

Hi @Karel_Pěnička,

I donā€™t have Pufferfish. But this seems to work.

Capture.gh (4.8 KB)

ā€“ Dale

You are using just Rhino.Display.ViewCapture.
Im using Rhino.Display.ViewCaptureSettings and SetWindowRect method . My input for print area is rectangle. Script take a picture of what is inside of this rectangle. . Your script take a picture of whole ActiveView.

@Karel_Pěnička Thanks for reporting this. I can confirm the invoke error is related to python 3 method handling and logged it here:

RH-85062 Pynet gets confused about methods with same name but one is static

1 Like