Billboards at wrong location

Billboards at wrong location

rax2003_7
Participant Participant
410 Views
0 Replies
Message 1 of 1

Billboards at wrong location

rax2003_7
Participant
Participant

Hello! 

I'm using Custom Graphics to add a text billboard to show information related to my components. Each component has it's respective file, but I use a "master" file where i put them in their physical position. I need to put the billboard in the origin of each component. However, the ' transform' property of each ocurrence doesn't correspond to where the component actually. I've been trying with joints, rigids groups, as built joins... even the bounding box of the ocurrence but I can't get the expected result. Any ideas?

Screen Shot 2019-10-02 at 4.16.29 PM.png

 

 
              
 
graphics = root.customGraphicsGroups.add()
graphics.id = "ITSMarks"
pointIndices = [0];
occs = root.occurrences	
for componente in occs:
    if esPisoQ(componente):
        text = 'Piso'
        matrix = adsk.core.Matrix3D.create()
        graphicsText = graphics.addText(text, 'Arial', 50, matrix)
        billBoard = adsk.fusion.CustomGraphicsBillBoard.create(adsk.core.Point3D.create(componente.transform.translation.x, componente.transform.translation.y, componente.transform.translation.z))
        billBoard.billBoardStyle = adsk.fusion.CustomGraphicsBillBoardStyles.ScreenBillBoardStyle
        graphicsText.billBoarding = billBoard

0 Likes
411 Views
0 Replies
Replies (0)