pysbs.batchtools.thumbnail.generate(), tiling from physical size
- October 11, 2021
- 1 reply
- 255 views
Hi there,
We are trying to generate thumbnails using the batchtools.thumbnail module. We are really excited about that new functionality.
Our input graphs contain an accurate physical size, and we would like the tiling on the thumbnail to be true to that physical size. But after running a few tests, the output generated by batchtools.thumbnail.generate() doesn't seem to respond to the input graph's physical size.
The documentation mentions that the material_icon_render.sbsar template is based on the PBRrender node. This node has a UV Tiling parameter, which we are hoping could be driven either by:
- the input graph's physical size attribute
- the input graph's physical-size input
But we are not sure how the PBRrender node is hooked up in the template.
Since we don't have access to material_icon_render.sbs ( we only found the sbsar in the SAT resource folder ), we tried to import material_icon_render.sbsar into a Designer. The tiling doesn't seem to respond to the physical-size input ( see screen shots attached ).
Could you please confirm that in batchtools.thumbnail.generate(), the UV tiling is not automatically set in function of the input graph's physical size? Or are we not using the API correctly? If the tiling is not hooked up yet, are you planning on updating the template and/or pysbs?
Also, if you were able to share the source graph material_icon_render.sbs, it would be great to have more visibility into what to expect from that template.
At last, I wanted to mention that whenever I try to import material_icon_render.sbsar into Designer on my MAC, my laptop crashes. It worked fine on Windows though.
Thank you!
