Im trying to create a script that will write the file name of the selected camera inside my Output Filename area in my renderer. Everything works fine, except my camera name has more information in the output file than I need. It reads like “View_Camera:Camera01 @ [9.9,0.0,-65].rpf”
How can I clean that up to only show “Camera01.rpf” ?
Here is my code
edittext txtSavePath FieldWidth:360 selectedCamera = viewport.getCamera() as string SaveFile = txtSavePath.text + selectedCamera +".rpf" rendOutputFilename = SaveFile
the textbox is to allow the user to type the directory, then the script gives the file name… Any sugesstions on how to clean this up?
Is it possible to edit the .rpf settings from the script? For example, enable Z-Depth, keep 16bit, Enable G-Buffer, etc. ??