Search - User list
Full Version: Screenshot model library in TOPs
Root » PDG/TOPs » Screenshot model library in TOPs
colinsenner
I'm trying to create a screenshot of my model library which I'll pipe into ImageMagick to create a montage. Rather than rendering each model, I'd just like to take a viewport screenshot.

My setup is pretty simple.

* A filepattern node which scans for all .fbx's in a folder.
* A geometryimport node to pull in the geo.
* attribcreate to create a string with the key "image_path" and the value pointing to where I want to save the flipbook image
* lastly a pythonscript node to create the viewport (flipbook) snapshot



When I run it, I get correctly named images saved to the /flip directory, but they're all the same content.



I've tried calling .draw() on the GeometryViewport and a few other things.

Any advice?
benC
I don't know how's the sop part of the file looks like so I could be wrong, but I could think of two things that could be causing problems:
  1. The geometry file name attribute didn't pass it to the file node in sop correctly
  2. Flipbook could have problems working with pdg since it's integrated with the viewport, use Opengl or mantra instead
colinsenner
benC
I don't know how's the sop part of the file looks like so I could be wrong, but I could think of two things that could be causing problems:
  1. The geometry file name attribute didn't pass it to the file node in sop correctly
  2. Flipbook could have problems working with pdg since it's integrated with the viewport, use Opengl or mantra instead

Can I use OpenGL or Mantra do just do a viewport screenshot? Is there any documentation for it in the python docs do you think?
benC
OpenGL would be closer to the viewport screenshot but they are not exactly the same. Just fetch the node to the TOP from a ROP network.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB