Camera Path Animation

Forum for OctaneRender Lua scripting examples, discussion and support.
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

The need to be created in the modelling application, you will probabaly have to write a script for that too.
there is one posted on this thread for Rhino.

best
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
kavorka
Licensed Customer
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Is there one for Blender by chance?
As of right now, I am trying to get my camera path out of Blender into the stand alone but the Alembic export/import somehow messes it up.
Intel quad core i5 @ 4.0 ghz | 8 gigs of Ram | Geforce GTX 470 - 1.25 gigs of Ram
gmillas
Licensed Customer
Posts: 45
Joined: Fri Jun 25, 2010 6:15 am
Location: Greece
Contact:

I have create a plugin for rhino that uses curves and point int camera frames
it is posted above
;)
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

gmillas

Would it be possible for u to fix the path output to ffmpeg in your cool app to be able to handle file names and folder names with spaces in them, this would help a lot.

Thx

mark
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
gmillas
Licensed Customer
Posts: 45
Joined: Fri Jun 25, 2010 6:15 am
Location: Greece
Contact:

I 'll give a shot. I think its easy
8-)
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

Did it turn out to be harder than you thought?

thx
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
BroAugustine
Licensed Customer
Posts: 31
Joined: Sat Mar 20, 2010 4:39 pm

MB & gmillas,
Handling of space values for os.execute() is a bit tricky.
If you replace line 660 thru 671 in the latest script with the following, things should work.
Cheers

Code: Select all

function ffmpeg()
    if OUT_PATH == nil then 
        return 0
    end
    FORMAT=formatComboBox:getProperties().items[formatComboBox:getProperties().selectedIx]
    FPS=frameRateSlider:getProperties().value
    scriptDir = octane.file.getSpecialDirectories()["userScriptDirectory"]
    local octane_dir=[["]]..scriptDir.."\\ffmpeg.exe"..[["]]
    local ffmpeg_cmd = octane_dir .. " -i \"".. OUT_PATH .."\"".."%04d.png  -c:v libx264 -r ".. FPS .." -pix_fmt yuv420p ".."\"".. OUT_PATH .."." .. FORMAT.."\""
    local cmd = ffmpeg_cmd:gsub("\\",  "/")
    os.execute([["]]..cmd..[["]])
end
Win 7 64 | I7-2600K 3.7 GHz | GTX 460, GTX 760 / Driver 347.09 | Cuda 7.0.18
gmillas
Licensed Customer
Posts: 45
Joined: Fri Jun 25, 2010 6:15 am
Location: Greece
Contact:

Thanks for the addition



;)
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

Many many thanks :D
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
erges
Licensed Customer
Posts: 46
Joined: Thu Dec 22, 2011 12:45 pm

Hi, Please, How to create the camera path in Maya? Is there the plugin or mel script?
Thanks
Post Reply

Return to “Lua Scripting”