3D Text entity
-
Sketchup::Text seems to refer only to "2d text", is there a way to identify 3d text?
-
I believe 3D text is not an "entity" (in the sense as there are different entities like image, arc, group etc) in SU. It is a simple geometry grouped (or put in a component I think).
Yet it may still be somehow available via ruby - that is out of my expertise.
-
Any 3D-text you make is simply made from edges and faces as an extrusion. It bears no relationship with SUp's 'floating' Text.
When you make 3d-text manually [or in code] it's best to do it inside its own group or component entities so it remains separate from the rest of the model's geometry: however, at that point it is a 'Group' or 'ComponentInstance' - there is no '3Dtext' or 'Text3d' class. Once it's been made it is fixed and not editable as 'text'...
It IS possible to code something that IS then editable later - see my 2Dtools' '2Dtext', which makes a piece of 'flat' 2d-text from 3d-text with zero extrusion size, which is a component; this has an attribute that makes it identifiable as such and which then allows a right-click context-menu item to be shown, which will let you edit the details of this piece of 2D-text - like font,size,color,etc... It'd be quite straightforward to make a 3D version of it, with a built-in 'extrusion' dimension item in the dialog: and then your '3d-text component' would become editable, rather like standard Text [i.e. SUp's 'floating' text entity]... -
Thanks Tig and Gaeius for the info.
Advertisement