uhlik / bpy

blender python scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to render a ply point cloud with python code

chrisLee1997 opened this issue · comments

I render point cloud files in blender all right, but when I render in a script with the python command, the command reported an error
For example, "PCVManager.load_ply_to_cache(None, bpy.context)" is used to load ply file.
PCVManager.render( ? )
Is this command used for rendering? if it is, I want to know what the parameters of this command should be.
Thank you!

commented

pcv 0.9.x? PCVManager.render is for drawing on screen, to render to image use operator PCV_OT_render called with bpy.ops.point_cloud_visualizer.render() (if points are loaded and displayed, blend is saved and there is camera in scene.. maybe some other coditions as well), look into PCV_OT_render_animation operator to see it in action