Forum: Poser Python Scripting


Subject: How to mirror a light

sergio777 opened this issue on Sep 18, 2021 ยท 13 posts


adp001 posted Sun, 19 September 2021 at 1:18 AM

The above function "copy_mirrored_light" takes an existing light and creates a mirrored copy of it. Parameter "trans" is a string containing the translation axis to mirror (X, Y and Z in one string, like "XYZ"). The same for "rot", the rotation axis. The last line above shows the most typical parameters: trans="X" and rot="XYZ".

Instead of a string a tuple or list with up to 3 values (0=="X", 1=="Y", 2=="Z") is also fine.