Message 1 of 1
Billboards at wrong location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
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