> lux.renderImage("/path/to/save/image.png", width = 1200, height = 1000, opts = opts)Īnother example could be to render using advanced rendering method with 64 samples, 8 threads, and 64 ray bounces: > opts = lux. An example could be to setup for rendering with max time of 10 seconds: > opts = lux.getRenderOptions() Notice that the format of the image is determined from the file extension.Īs with importing, advanced options can be passed using the opts option. In this case we render the image to “/path/to/save/image.png” as a PNG file with dimensions 1200×1000 pixels. Best Practices for Sharing and Embedding USDz and GLB FilesĪssuming you have already loaded a BIP file, or imported some geometry, and you want to render to an image with scripting then do the following: > lux.renderImage("/path/to/save/image.png", width = 1200, height = 1000).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |