Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5892

When is a GUID created

$
0
0

I would be grateful if someone could explain when a GUID is created…I understand any GetObject will create one but does the resulting creation inn a script have one ? For example, if I have a definition of a Triangle as a sequence of events and then call Triangle, does the resulting Triangle automatically have a GUID , and if my script then creates a surface from that triangle does the resulting surface have a GUID ?
I am asking because I have successfully created the surface and rotated it but even though the rotation is successful I get an error message:
This following works fine and the surface is rotated ;
C = rs.GetObject(‘pt 3’)
rs.Command("_SelSrf")
Tri = rs.GetSurfaceObject( preselect=True)

rs.RotateObject(Tri,C,30)

however this message pops up:
Message: The <type ‘bool’> cannot be tranformed. A Guid or geometry types are expected.

I think this means that the surface created in my script earlier and selected by SelSrf has been accepted as Tri because I identified it as preselected but it still does not have a GUID. Am I correct in my understanding, and why has it performed the transformation despite saying that it cannot do it ?

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5892

Trending Articles