That is perfect, thank you for being through and concise, lifesaver.
A
Posts made by AG_Vivimagic
-
RE: Creating a Playblast script falling at the hurdle.
-
Creating a Playblast script falling at the hurdle.
I am creating a playblast script where it will automate the render settings for the project file and playblast render settings. Code below.
import c4d from c4d import documents, plugins, storage, utils doc[c4d.DOCUMENT_FPS] = 25 #set file fps newRenderData = c4d.documents.RenderData() newRenderData.SetName('Playblast') doc.InsertRenderDataLast(newRenderData) doc.SetActiveRenderData(newRenderData) #make it active newRenderData.SetBit(8) #make it selected render_data = documents.GetActiveDocument().GetActiveRenderData() c4d.CallCommand(12161) # Render Settings newRenderData[c4d.RDATA_RENDERENGINE] = 300001061 #create Viewport Renderer c4d.EventAdd() newRenderData[c4d.RDATA_XRES] = 1920 #width newRenderData[c4d.RDATA_YRES] = 1080 #height newRenderData[c4d.RDATA_FRAMERATE] = 25 #set render fps to 25 newRenderData[c4d.RDATA_FRAMESEQUENCE] = 2 #Frame range to "All Frames" newRenderData[c4d.RDATA_FORMAT] = 1125 #MP4 format newRenderData[c4d.RDATA_XRES_VIRTUAL] = 1920 #width newRenderData[c4d.RDATA_YRES_VIRTUAL] = 1080 #height c4d.EventAdd(c4d.EVENT_FORCEREDRAW) if __name__=='__main__': main()
I am getting the render settings to align and execute however it is not updating the UI. It need to look like this ! image url) Not this