Re: Smooth & Easy Camera Animation for OR Standalone, ORC v1.21
Posted: Thu Mar 26, 2015 10:54 pm
Here is a resulting animation. I attached one of the ships to the camera and made it do a crazy roll...
Steve
Steve
Community Forums for OTOY Customers
https://render.otoy.com/forum/
pegot wrote:Does this script work on Mac or is it Windows only?
octane
table. So the constants to specify file formats are octane.imageSaveType.PNG8
etc.octane.file
table: octane.file.join(path, ...)
will join paths together and it will correctly handle the case where any of the paths happens to be an absolute path. It will also handle the different kinds of slashes. octane.file.getFileNameWithoutExtension
will strip the file extension, at the moment the script will overwrite the project file when you have an ORBX package open.local sceneFile = octane.project.getCurrentProject()
local projectPath = octane.file.getParentDirectory(sceneFile)
local projectName = octane.file.getFileNameWithoutExtension(sceneFile) .. ".orc"
local orcFile = octane.file.join(projectPath, projectName)
[[%.%w%w%w%w?$]]
.