Text Tag 3D Preview in ghpythonlib does not give text preview

Hi All,

Love being able to access all the GH components in Python but both Text Tag 3D and Custom Preview, run without errors but do not preview text/geo etc

import ghpythonlib.components as gh
gh.TextTag3D(Loc,Text,Size,Col,0)

Is this because the python component is overriding their preview somehow and is it possible to turn this off.

Cheers
Matt

The components you invoke via python all “live” in a separate document. This document is never loaded into the canvas and is never included in previews. The node-to-code stuff only deals with inputs and outputs, any ancillary functionality is meaningless.

Ah ok, good to know. Ok next question is there a way to preview text within a script component or is my best bet just to make a cluster with a text tag 3D component and my python bake text script component?

In C# you can add preview override methods, perhaps python allows the same? There’s also the Rhino.Display.CustomDisplay class. But you’ll run into issues when a different document is loaded.

Ok, thanks will have a look into that, though by the sounds of it a cluster maybe better as then other users i give it to won’t get errors.