@harvid22 wrote:
Adding text to my new constructed cplane works
When I’m trying to rotate the text is using the world coordinates
Is it the ViewCPlane I should use to fix it, and How do I set it up correctly ?import rhinoscriptsyntax as rs surface1 = rs.GetObject("Select surface 1", rs.filter.surface | rs.filter.polysurface) Border1 = rs.DuplicateSurfaceBorder( surface1 ) rs.HideObject(surface1) bbox = surface1 msurface = rs.SurfaceAreaCentroid(surface1) point = [] LL = rs.ExplodeCurves(Border1) for i in LL: po = rs.CurveMidPoint(i) point.append(po) newplane = rs.PlaneFromPoints(msurface[0], point[1], point[3]) tx = rs.AddText("22", newplane,height=50,justification=2 ) #rs.ViewCPlane(newplane)#??? p = 0,0,0 rs.RotateObject(tx, p, 45.0, None, copy=True)
Posts: 1
Participants: 1