8,484
edits
Paradox-01 (talk | contribs) m (objWMIService? ... ah crapbasket. MT is so buggy that it might falls apart just by looking at it.)  | 
				Paradox-01 (talk | contribs)  m (taking a viewport screenshot)  | 
				||
| Line 587: | Line 587: | ||
ExecuteScript doesn't help.  | ExecuteScript doesn't help.  | ||
===Taking a viewport screenshot===  | |||
 SetDisplayMode "Camera", "texturedecal"  | |||
 DeselectAll  | |||
 cf = ActiveProject.Properties.Item("Play Control").Parameters.Item("Current").Value  | |||
 set oViewportCapture = Dictionary.GetObject("ViewportCapture")  | |||
 oViewportCapture.NestedObjects.Item("Start Frame").Value = cf  | |||
 oViewportCapture.NestedObjects.Item("End Frame").Value = cf  | |||
 oViewportCapture.NestedObjects.Item("OpenGL Anti-Aliasing").Value = 4  | |||
 oViewportCapture.NestedObjects.Item("File Name").Value = "C:\Oni\AE\Tools\Simple_OniSplit_GUI\OutputFolder\test.jpg"  | |||
 CaptureViewport  2, false  | |||
command-line access via:  | |||
 C:\Softimage\Softimage_Mod_Tool_7.5\Application\bin\flip.exe  | |||
For CMD options use "true" and Help > Command Line Options  | |||
 CaptureViewport  2, true  | |||
It might be possible to further automate html creation with this.  | |||
When screenshots are big enough the info text doesn't overlay object and can be cut away in further image processing.  | |||
==Read file==  | ==Read file==  | ||
edits