Hello All,
Is there a way to switch lower case texts to upper cases in Rhino? I am trying to change all the room labels for the project I am working on to upper case.
Highly appreciate any tips.
thanks,
Mahsa
Hello All,
Is there a way to switch lower case texts to upper cases in Rhino? I am trying to change all the room labels for the project I am working on to upper case.
Highly appreciate any tips.
thanks,
Mahsa
Something like this smalll scriptlet should work:
import rhinoscriptsyntax as rs
def to_filt(rhino_object, geometry, component_index):
return rs.IsText(geometry)
def ConvertTextToUppercase():
msg="Select text blocks to convert to uppercase"
text_objs=rs.GetObjects(msg,512,preselect=True,custom_filter=to_filt)
if not text_objs: return
for text_obj in text_objs:
text=rs.TextObjectText(text_obj,rs.TextObjectText(text_obj).upper())
ConvertTextToUppercase()
Thank you very much, Helvetosaur!