I’m trying to write a script to be able to label a VA window object with a text tag. The attached will do it, but on some objects the text is reversed, even to the object normal. I can’t figure this out and wondered if someone had any ideas.
I’m trying to write a script to be able to label a VA window object with a text tag. The attached will do it, but on some objects the text is reversed, even to the object normal. I can’t figure this out and wondered if someone had any ideas.
Could it be a mirrored window? Another thought is that those surfaces are flipped (maybe upon the creation of the window the direction is random), if that’s the case I can suggest using EvalSrf point instead of area centroid.
Overall I think it is face orientation problem or wrong input.
Hi @timglobal,
Doors and windows in VisualARQ have a property called “Opening side” that tells if the leaf open to left or right. The internal implementation of this property is just to apply a mirror matrix when the opening side is right. As the mirror is done on a plane where the normal lies, the normal is not affected by the mirroring transformation.
Unfortunatelly, there is a bug in VisualARQ 1.9.4 and it is not possible to get the value of the property “openingSide” with the component “VisualARQ Get Property”. I’ve already fixed this bug in VisualARQ 1.9.5, which should be released very soon, probably in a few days.
Regards,
Enric
Enric - brilliant! for my purposes anyway. In all instances where the text was reversed, changing the opening side value solved the issue. I hadn’t looked to this variable as I only ever use ‘fixed’ windows and assumed it had no relevance.
thank you. looking forward to the next update.
And Tim - thanks for the reply,
Thank you @enric,
In my shaded view I use bright green as back face indicator, so when I first noticed that some of the windows have green sides instead of blue I thought that that was orientation problem within the window block, but after your comment I realised that there is a control point for direction that can fix this issue. Never cared much about it enough to figure it out on my own, derp XD, thanks for your explanation, it makes sense, because I usually copy paste my windows and they stuck with one orientation.