physical not activating
On 03/02/2017 at 15:36, xxxxxxxx wrote:
when I activate physical render via python, the render engine doesn't actually load.
it will only load if i manually set from physical, to something else and back again.
and if I get that working how do you access the physical settings? they don't seem to be in the python or c++ documentation
On 03/02/2017 at 16:02, xxxxxxxx wrote:
You also have to insert the respective VideoPost, because they can also represent render engines.
On 03/02/2017 at 16:52, xxxxxxxx wrote:
any idea what that is called? there is nothing in the documentation. for instance if i were to write...
hair = c4d.BaseList2d(c4d.VPhair)
VPhair is in the documentation, so i can find out what to call.
there is no documentation for physical. VPphysical is not a thing
On 04/02/2017 at 03:51, xxxxxxxx wrote:
Have a look a thread i did a week ago :)
I'm not sure but it's probably RDATA_RENDERENGINE_PHYSICAL
On 06/02/2017 at 02:40, xxxxxxxx wrote:
I think, this is solved. I'd just like to add a link for future readers:
In the C++ SDK documentation there's a manual on RenderData, that might be helpful in this context.
Furthermore I can acknowledge that RDATA_RENDERENGINE_PHYSICAL is the correct ID for physical renderer.
On 06/02/2017 at 09:48, xxxxxxxx wrote:
cool we got physical to turn on!
but I still can't edit the sampling subdivisions, shading subdivision(min),shading subdivision(max), error threshold, or any other setting in the physical render settings! they still are not mentioned in the documentation including the rdata manual and post effect manual or any other manual i can find.
I don't understand how I am supposed to even find this information? am i supposed to just guess wildly until something sticks?
On 06/02/2017 at 10:53, xxxxxxxx wrote:
the easiest way to find parameter IDs, is to open the Console window (Shift-F10) and in your case the render settings. There is an input field at the bottom of the Console. Simply drag the parameter in question onto this input field to get the ID.
On 06/02/2017 at 11:30, xxxxxxxx wrote:
the setting i'm trying to get don't work that way. give it a try.
On 06/02/2017 at 11:55, xxxxxxxx wrote:
Just an exemple but I really suggest you to re-read the thread link I provided in my last post.
import c4d def main() : rd = c4d.documents.RenderData() rd_bc = rd.GetDataInstance() rd_bc[c4d.RDATA_RENDERENGINE] = c4d.RDATA_RENDERENGINE_PHYSICAL physical_vp = c4d.BaseList2D(c4d.RDATA_RENDERENGINE_PHYSICAL) physical_vp[c4d.VP_XMB_RAYTRACING_SAMPLES] = 10.0 rd.InsertVideoPost(physical_vp) rd_bc[c4d.RDATA_XRES] = 1920.0 rd_bc[c4d.RDATA_YRES] = 1080.0 rd_bc[c4d.RDATA_FRAMERATE] = 25.0 rd_bc[c4d.RDATA_FORMAT] = c4d.FILTER_JPG rd_bc[c4d.RDATA_PATH] = "test" c4d.StopAllThreads() doc.InsertRenderDataLast(rd) doc.SetActiveRenderData(rd) c4d.EventAdd() if __name__=='__main__': main()
On 06/02/2017 at 12:16, xxxxxxxx wrote:
you still did not get into the physical settings! I know how to do what you just showed! the default physical render settings are too low of quality. I need to adjust the sampling subdivisions, and other such setting in the physical tab. see the second image that has orange highlighted settings. those settings cannot be dragged and dropped. i cant find them in the documentation, and they are not what you just demonstrated.
On 06/02/2017 at 12:31, xxxxxxxx wrote:
For me everything working correctly.
If you want to edit the existant instead of physical_vp = c4d.BaseList2D(c4d.RDATA_RENDERENGINE_PHYSICAL) you have to list all VidepoData with rd.GetFirstVideoPost() then with .GetNext() you chekc each one if it's the RDATA_RENDERENGINE_PHYSICAL ID with vp.CheckType(RDATA_RENDERENGINE_PHYSICAL)
On 06/02/2017 at 12:54, xxxxxxxx wrote:
wow thank you! in the video you posted it does drag and drop, i guess my version doesn't do that. I did not know they were called vp_xmb... I did see those names in the documentation but they had no description at all.
Thank you so much!
On 07/02/2017 at 02:55, xxxxxxxx wrote:
Thanks, gr4ph0s for posting the explanatory video.
Just a small addition. When you have found out one of the IDs via Drag and Drop it might be faster to search the resource files for it and see all the other parameters listed directly there. The resource files can be found in the installation folder under resource/modules.