I’m wondering if there is an easy way to get Grasshopper geometry to Preview in a Layout (not in a Detail View, onthe Layout Page itself)? For instance, if I generate some text that I’d like to see Previewed for the user (as part my titleblock for instance) - I can’t seem to figure how I’d get that to show up as a Preview?
import Rhino # Set up Text Object Parameters basePlane_Origin = Rhino.Geometry.Point3d(0,0,0) basePlane_Normal = Rhino.Geometry.Vector3d(0,0,1) basePlane = Rhino.Geometry.Plane(origin=basePlane_Origin, normal=basePlane_Normal) # Create the Text Object txt_ = Rhino.Geometry.TextEntity() txt_.Plane = basePlane txt_.Text = _txt # Create Surfaces from the Text for Previewing dimStyle = Rhino.DocObjects.DimensionStyle(Name='_temp') txtAsSrfcs = list(txt_.CreateSurfaces(dimStyle))
I can create and manage the text all fine and GH Preview works in the 3D View of course
But in a Layout view it doesn’t seem to show up? It will show up inside a Detail View of course - but I’m trying to get it to show up on the Layout page itself, not inside a Detail View.
If I ‘Bake’ the text out to the Layout (while in the right Layout view) it will show up just as I want - ultimately that Baked geom is what I’ll use when I print the Layouts…
but in order to set it up correctly the Preview is needed obviously. Any thoughts on what I’m doing wrong here and if there is a better / easier way to do Grasshopper previews on a Layout page but not inside a Detail View - on the Layout itself?
thanks very much for any input!