Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to render a ply point cloud with python code #50

Closed
chrisLee1997 opened this issue May 21, 2021 · 2 comments
Closed

how to render a ply point cloud with python code #50

chrisLee1997 opened this issue May 21, 2021 · 2 comments

Comments

@chrisLee1997
Copy link

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!

@uhlik
Copy link
Owner

uhlik commented May 21, 2021

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

@uhlik uhlik closed this as completed May 21, 2021
@chrisLee1997
Copy link
Author

chrisLee1997 commented May 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants