Grasshopper

algorithmic modeling for Rhino

Does anyone know if and how you can override the DrawViewportMeshes method in a Python scripting component?

For example.... how do I do the below code in Python (if its possible at all).

public override void DrawViewportMeshes(IGH_PreviewArgs args)
{
   args.Display.Draw2dText();
}

This is easy enough in a C# component, but I don't know how exactly to pull this off in Python.

Can you do this through the ghenv.Component.DrawViewportMeshes()?

Any help would be great. I'd like to stay in Python if possible, otherwise I'll need to convert Python dictionaries to C# dictionaries (not the end of the world, but not preferable).

Thanks!!!

Views: 278

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service