Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

ViewCaptureSettings - not captured

$
0
0

Hi guys.

When i capture screenshot of what is inside of rectangle, it not take me 3D text tag .

It capture this.

And I need this.

Have you any idea what to change to capture it ?

Thank you

screenRectCapture.gh (4.6 KB)

import Rhino.Display as rd
import scriptcontext as sc
import System, operator


ghenv.Component.Message = "CaptureRect"


def CaptureRect():
    view = sc.doc.Views.ActiveView
    size = System.Drawing.Size(rect.Width*20, rect.Height*20) 

    settings = rd.ViewCaptureSettings(view, size, 300) #view, size, dpi
    settings.SetWindowRect(rect.Corner(1), rect.Corner(3))
    settings.RasterMode = True
    settings.DrawGrid = False
    settings.DrawAxis = False
    settings.DrawBackground = True

    bitmap = rd.ViewCapture.CaptureToBitmap(settings)
    if bitmap:
        bitmap.Save(path)


if save:
    CaptureRect()

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles