A BPY plus module to get output render data.
Output class
extension(context=bpy.context, animation=False)
Return output file extension for render
Parameters:
context: context pointer
animation: True – extension for animation render, False – extension for single image render
Returns:
File extension
1 2 3 4 |
from bpy_plus.output import Output print(Output.extension(animation=True)) # mov |
path(context=bpy.context)
Full path to render output
Parameters:
context: context pointer
Returns:
Full path to render output
1 2 3 4 |
from bpy_plus.output import Output print(Output.path()) # d:/projects/my_project/output |