Grasshopper

algorithmic modeling for Rhino

Screenshots with extra components in each view - show and hide of input components

Hi,

I'm trying to make screenshots of several angles (front / top / perspective etc), and want to have several specific components in each screenshot. (In the below attached example, the sphere in the front screenshot, and the box in the right-screenshot).

With the current code I have, the screenshots are generated as a loop within the component, and the extra objects in GH are shown afterwards. Resulting in the screenshots without the specific objects. 

I'm guessing that I need to force a preview redraw of the grasshopper object, but couldn't get it to work. I tried adding a owner.ExpirePreview(True), but that didn't work.

Thanks in advance!

Views: 515

Attachments:

Replies to This Discussion

I don't know if this works for your particular process but the standard custom preview components support a "viewport filter" - you can right click and tell geometry to only show in "front" or "left" or whatever - then when you capture each viewport you should see it.

Thanks Andrew! 

That works for now!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service