EvilSi
6th Dec 2010, 12:50 pm
Is there a script (non-lisp) I can use that will allow me to set the rotation of an object to that of the Dview twist?
I have this lisp, for example, which sets the snapang to the value of the Dview twist:
(setq twang (-(/ (* (GETVAR "viewtwist") 180.0) PI))
)
(initdia)
(command "snapang" twang)
)
But I need something that will do the same within LT2010. I don't know enough about script-writing to see if it's possible or not.
I know that rotating the UCS is another option here, but the key thing I need is the method by which I can set a rotation value by referencing another setting (in this case, Dview twist value).
Thanks!
I have this lisp, for example, which sets the snapang to the value of the Dview twist:
(setq twang (-(/ (* (GETVAR "viewtwist") 180.0) PI))
)
(initdia)
(command "snapang" twang)
)
But I need something that will do the same within LT2010. I don't know enough about script-writing to see if it's possible or not.
I know that rotating the UCS is another option here, but the key thing I need is the method by which I can set a rotation value by referencing another setting (in this case, Dview twist value).
Thanks!