Jump to content

Skripting und 3D-Ansicht als Grafik / Scripting and 3D view as graphics


---
 Share

Recommended Posts

Hallo allerseits,

gibt es beim Skripting mit Python in Inspect eine Möglichkeit, die 3D-Ansicht der Anwendung als Grafik zu erfassen und als Grafikdatei zu speichern? (nur die 3D-Ansicht als solches, nicht die gesamte Anwendung!)

vielen dank im voraus für die Hilfe!

----------------------------------------

Hello everyone,

when scripting with Python in Inspect, is there a way to capture the 3D view of the application as a graphic and save it as a graphic file? (only the 3D view as such, not the entire application!)

many thanks in advance for your help!

Link to comment
Share on other sites

Hi,

This is possible by creating a report page and exporting the view as png

image.thumb.png.d8c71dfab800956cf374412d66dd2ae6.png
Recorded:

gom.script.report.create_report_page (
	animated_page=False, 
	animation=['snapshot_frame_0', 'Animation by all stages, 5.0s'], 
	imitate_fit_mode='overwrite', 
	master_name='Style_a3', 
	template_name='3D', 
	template_orientation='landscape', 
	template_package={'name': 'Inspect', 'uuid': 'a6769fbc-4bda-4cec-af9a-b189baf8b742', 'version': '1.0.8'}, 
	title='Untitled')

gom.script.report.export_report_image_as_png (
	directory='C:/Users/iqsmarti/Documents', 
	disable_transparency=True, 
	height=1181, 
	images=[gom.app.project.reports['report 1'].pages['page 1'].placeholders['3d_view 1']], 
	use_original_size=True, 
	width=2048)

Hope this hepls!

Link to comment
Share on other sites

 Share

×
×
  • Create New...