Notifications
Clear all

[Closed] render camera move only

yes that was a try …

obj = $Camera01 – change this to the name of your camera
framerange = #()
rangeString = “”
global firstnum

for j in animationrange.start to animationrange.end do
(
at time (j-1) (pastPos = obj.pos;pastRot = obj.rotation)
at time (j+1) (futurePos = obj.pos;futureRot = obj.rotation)
at time j
(
currentPos = obj.pos
currentRot = obj.rotation
if currentPos != pastPos or currentPos != futurePos or currentRot != pastRot or currentRot != futureRot then
(
if firstNum == undefined then
(
firstNum = j
)
framerange[framerange.count + 1] = (j as integer)/160
)else
(
if firstNum != undefined then
(
lastNum = j – 1
rangeString += ((firstNum as integer/160) as string) + “-” + ((lastNum as integer/160) as string) +”,”
firstNum = undefined
)

  )

)
)

if rangeString != “” then
(
rangeString = substring rangeString 1 (rangeString.count – 1)
)

renderscenedialog.close()
rendTimeType = 4
rendPickupFrames = rangeString

renderscenedialog.open()

This one is ok but instead of cutting sequences it does one seq only.

0-125 instead of 0-10,22-35,55-76,105-125

It does cut sequences up.

If you see only one sequence, that means there is some motion on your camera still (maybe very subtle) in places where it appears to be still.

Try this:

Create a new scene
Create a new camera
Turn auto-key on
Go to frame 40
Move the camera
Now go to frame 60
Set a position key
Now go to frame 80
Move the camera
Now run the script

Your render frame range will now appear as “0-40,60-80”

great! thank you Ivanisavitch. Maybe there was a bezier interpolation between my 2 frames.

The aim is to export rpf render to recreate the camera in After effects. The fact is my sequence is 7000+ frames with long still time, and the after effects camera creation take one hour for that! SO I want to downsize the time by create camera for motion only.
Thank you, you make my day.

You know there is a script posted to this forum for exporting Max camera to AE javascript. You can find it here.

-Eric

Try this:

Create a new scene
Create a new camera
Turn auto-key on
Go to frame 40
Move the camera
Now go to frame 60
Set a position key
Now go to frame 80
Move the camera
Now run the script

Your render frame range will now appear as “0-40,60-80”

This works. But try to move the keyframes along the timeline and relaunch the script. Or try to create a global Key “K” (pos,rot,scale) and it doesn’t work anymore…

Page 2 / 2