LDraw.org Discussion Forums
Can it be done through a script? - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: Can it be done through a script? (/thread-29053.html)



Can it be done through a script? - HWQ - 2025-09-05

I want to rotate the relative coordinates first and then do the displacement. Can I do this through a script?
I made some decorative parts using partdesign, but when I try to replace them with the original parts using LD, they're offset. I'd like to use a script to correct the position of specific parts, but I'm not sure how. Could someone write a script for the following example?


RE: Can it be done through a script? - HWQ - 2025-09-05

(Yesterday, 2:52)HWQ Wrote: I want to rotate the relative coordinates first and then do the displacement. Can I do this through a script?
I made some decorative parts using partdesign, but when I try to replace them with the original parts using LD, they're offset. I'd like to use a script to correct the position of specific parts, but I'm not sure how. Could someone write a script for the following example?

Or is it possible to first select all related parts --- run the script----then dialog boxes [Relative Rotation Angle] and [Displacement Information] ----then perform operations on all related parts. (It is best to intuitively rotate according to the axis, because I really don't understand the rotation matrix)