How to disable preview in viewport?

I have create a lot of planes in grasshopper,and this planes can be seen in viewport like this:

and I really intend to create one component in c# ,to disable (and enable) preview (in viewport) of some kind of object(like planes) in created in gh canvas ,to speed up the manipulation(because it is too slow).i know we can manully diable the preview “plane” component ,but i really want to do this more efficient.

but i have no idea to do that code.
so any one have ideas?
Thankyou !

Take a look at metahopper. You can install it through the package manager.

metahopper_preview_group.gh (10.2 KB)

1 Like

Select plane component, right click, choose preview off

Thank you Martin,i have tried ,it works

1 Like