6/23/2023 0 Comments Blender python 3The following command rendera a YAML config to an image $ blenderless config scene.yml output.png Render geometry to gif with a camera looping around an object. $ blenderless -export-blend-path export.blend image foo.stl output.png # If. Render geometry file to image $ blenderless image foo.stl output.png gif ( cls, mesh_path, dest_path = None, elevation = 30, theta = 0, frames = 60, duration = 2 ) Command-line interface render_from_config ( 'config.yml', dest_path = None ) # Render GIF animation, note that azimuth is defined by number of frames. render ( 'meshpath.stl', dest_path = None, azimuth = 45, elevation = 30, theta = 0 ) # Render from config, note that objects and cameras are defined within the YAML config. export_blend_path = 'export.blend' # Render single STL file path_to_foo_png = Blenderless. from blenderless import Blenderless # Set the following property if you want to export the generated blender workspace. There is support for Jupyter Notebooks as the images/gifs will be shown as IPython Image objects automatically. The main functionality is exposed using the Blenderless class. ![]() The blenderless package can be loaded as a module. Notebook examples (point clouds, mesh face colors. ![]()
0 Comments
Leave a Reply. |