Grasshopper

algorithmic modeling for Rhino

how to add annotation text for the input/output nodes on the GhPython component

May I ask how to add annotation text for the input/output nodes on the GhPython component, those text shown when you hover your mouse on the input/output variable?

Thanks!

Views: 1215

Replies to This Discussion

Those are specified by the parameter itself. You probably can't change the name (y) or description (Script inputrunIt) of a parameter, but the NickName (runIt) can be set both through the UI and easily though code. If the Name or Description are get/set properties, then you can change them, I'm just not sure if they are.

Thank you, David!

I followed the initiation Python code in the Honeybee components for GH, and it seems with the following lines of code, we can add annotation text for the "argument" variables and "return" variables on a customized GyPython component, in addition to name, nick name, message, etc.

However, I don't know how to add this customized GyPython component as a user object, i.e a .ghuser file. So, still not able to show it in the GH tab.

May read a bit more on how to customize GH user object ...

Appreciate your advice!

- Ji

Hi Ji,

Check this reply by Danny. He explains how to create a .ghuser file from a cluster, but the approach is the same.

Thank you very much, djordje! I shall try the suggested method later.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service