I’m attempting to rotate families to face the camera (or a specified point/coordinate).
I’ve utilized the ‘synthetic’ package to extract camera location and element facing direction. In my current workflow I’ve tried to get the vector of each element to camera location, and then the vector of existing element facing direction, then rotate the family by the difference in angle between those two vectors. However the graph is not working out for me.
One problem seems to be the camera position reported is not correct. I’m unsure whether units are the cause (i’m working in metric). Any help would be greatly appreciated. Graph attached.
Face-Me Script_.dyn (32.0 KB)
Face-Me Test Component.rfa (336 KB)