Hi,
I’ve create a list of text objects in a circle, and now I want to ‘orient’ them towards the center of that circle.
As inputs I have:
- x = text entity list from the ‘Text 3D Advanced’ component.
- pts = list of center points for the text objects
- angle = list of angles in degrees between the X axis and the vector between center of circle and each text object
The script is:
import rhinoscriptsyntax as rs
for i in range(0,len(x)):
pt = pts[i]
deg = float(angle[i])
rs.RotateObject(i, pt, deg)
I get the following error:
Runtime error (TypeErrorException): iteration over non-sequence of type int
Traceback:
line 1795, in TransformObjects, "C:\Users\yafim\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 1498, in RotateObjects, "C:\Users\yafim\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 1466, in RotateObject, "C:\Users\yafim\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
line 18, in script
Any ideas what I’m doing wrong?
Thanks!