Quantcast
Viewing all articles
Browse latest Browse all 5781

Rhinopython: Guid has no attribute __float__

@shackleton wrote:

Ahoy Sailors!

I have a strong background in Grasshopper and I´m starting to train myself in rinopython as a personal challenge.

I was trying to create a script that rotates two objects from two different centerpoints but I got the following error:

Message: 'Guid' object has no attribute '__float__'

Traceback:
  line 652, in coerce3dpoint, "C:\Users\xx\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
  line 1492, in RotateObjects, "C:\Users\xx\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py"
  line 14, in RotarColumnas, "C:\Users\xx\Documents\Python Scripts\rotatetest.py"
  line 22, in <module>, "C:\Users\xx\Documents\Python Scripts\rotatetest.py"

In the name of Neptune… what is a GUID?

Here´s the code:

import rhinoscriptsyntax as rs

class rotate:
    
 
    def __init__ (self,_columnas, _points):
        self.columnas = _columnas
        self.points = _points
    
    def RotarColumnas(self):
        columnasId = [(self.columnas)]
        print(columnasId)
        
        rs.RotateObjects(columnasId, self.points, 45.0, None, False)



columnas = rs.GetObjects('select', 16)
points = rs.GetObjects('select', 1)

obj01 = rotate(columnas,points)
obj01.RotarColumnas()

Best regards,
Sir Ernest Shackleton

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5781

Trending Articles