I’m working on a coliseum-like data viz model.
In it, I would like to place text objects that represent what each pillar represents around the outside of the model (hopefully my screenshots will explain what I’m trying to do better than I can).
I’m placing text objects around a circle’s circumference based off a lovely script by Helvetosaur. The function is as follows:
def AddTextObjectAsCurves(x_pos, y_pos, z_pos, the_author):
text = the_author
insPt=Rhino.Geometry.Point3d(x_pos,y_pos,z_pos)
commStr="-_TextObject "
commStr="-_TextObject _GroupOutput=_Yes _FontName=Arial "
commStr+= "_Height=" + "1" + " "
commStr+="_Italic=_No _Bold=_No "+str(text)+" _Output=_Curves "
commStr+="_AllowOpenCurves=_No _LowerCaseAsSmallCaps=_No "
commStr+="_AddSpacing=_No "+ text +" "+str(insPt)
text_test = rs.Command(commStr, False)
#rs.RotateObjects(objs, insPt, 90, (0,1,0), False)
#rs.RotateObjects(objs, insPt, 90, (1,0,0), False)
This works fine, except if I pan around at all while the script is executing, my TextObjects wander around.
Here’s a close-up of the desired behaviour/placement:
If I pan around at all, or sometimes even just move my mouse without clicking at all, my text travels in seemingly random patterns. The image below is the full top-down view of the model. The dark lines within the circle are misplaced text. They are not aligned at the correct x, y or z level.
My question is: is this proper behaviour? It’s a bit frustrating to have my objects jump around, especially as a serial panner. I’m still learning Rhino and all the scripting that comes with it, so I apologize if this is something I should know.