Joined: 19 Aug 2009 Location: Moscow State University
Posted: Sat Aug 09, 2014 6:57 am Post subject:
A camera script I am using for 3dsmax
Code:
fn zRotKeys obj rotType:#cw x: step: ang: =
(
local arr = #()
for i = 1 to step do
(
for j = 1 to 2 do append arr (if mod j 2 != 0 then i*x else (i*x+(j-1)))
)
addNewKey obj[3][2][3].track 1
for i = 1 to arr.count do
(
if mod i 2 != 0 then (addNewKey obj[3][2][3].track arr[i]) else
(
with animate on at time arr[i]
(
if rotType == #ccw then obj[3][2][3].track.value += ang else obj[3][2][3].track.value -= ang
)
)
)
)
tea = $centerdummy
zRotKeys tea rotType:#cw x:30 step:7 ang:-45
your camera and lights should be linked to a dummy object named centerdummy . Of course you can edit the script.
X means how many frames an animation has in each direction.You need to copy it so that it plays 8 times
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum