Notifications
Clear all
[Closed] copy position and rotation
Feb 18, 2017 9:00 am
hi everybody
this is script for copy position animate
i want copy position and rotation
A = selection as array
for i = 1 to A.count do(
b = A[i].position
Point pos:b isSelected:on
$.name = A[i].name
for t = 1 to animationrange.end do
(
with animate on
(
at time t (
c = A[i].position
$.pos = c)
)
));
2 Replies
Feb 18, 2017 9:00 am
Hi
if i got what you are after , in your script just replace pos and .position with .transform .
The transform has the position and the rotation and the scale as well.
then the created points will have the selected object’s position and rotation .
A = selection as array
for i = 1 to A.count do
(
b = A[1].transform
Point transform:b isSelected:on
$.name = A[i].name
for t = 1 to animationrange.end do
(
with animate on
(
at time t
(
c = A[i].transform
$.transform = c
)
)
)
)
Labkhand bezan baba .
:))