Grasshopper

algorithmic modeling for Rhino

Disabling Preview for certain outputs in a Custom GH_Component

Silly question.....

I have just finished a custom component , but would like only some of the outputs to be visible in the Rhino Viewport.

How do I disable certain outputs, for example:

I want the UVs to be accessible but not to show up..... for the below output?

DA.SetDataTree(3, finalUVs)

Your help is much appreciated ,

Carson

Views: 616

Replies to This Discussion

In your RegisterInputParams or RegisterOutputParams you can hide certain parameters.

pManager.HideParameter(index)

HideParameter() is just a utility function that sets the Hidden property on preview aware parameters. You can do this yourself as well, but you'll need to cast your IGH_Params to IGH_PreviewObject.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hey David,

Here is a Link to the released plugin SONIC you helped me out with..... just a little something to ease ray casting madness:)

http://www.grasshopper3d.com/group/sonic

Thanks again for your help :)

Cool.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

David, You're Awsome !!!

 

Once again , Thankyou for answering my silly question.

 

It worked perfectly!!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service