{"id":16244,"date":"2022-02-24T13:09:42","date_gmt":"2022-02-24T12:09:42","guid":{"rendered":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting-bild-rendern\/"},"modified":"2022-02-24T13:57:52","modified_gmt":"2022-02-24T12:57:52","slug":"scripting-bild-rendern","status":"publish","type":"manual_documentation","link":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de","title":{"rendered":"Scripting: Bild rendern"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Bild rendern<sup>(GUI und Headless)<\/sup><\/h2>\n\n<p>Angenommen, Sie haben bereits eine BIP-Datei geladen oder Geometrie importiert und m\u00f6chten mit Scripting ein Bild rendern, dann gehen Sie wie folgt vor:<\/p>\n\n<pre class=\"wp-block-code\"><code class=\"\">&gt;&gt;&gt; lux.renderImage(\"\/path\/to\/save\/image.png\", width = 1200, height = 1000)<\/code><\/pre>\n\n<p>In diesem Fall rendern wir das Bild nach &#8220;\/path\/to\/save\/image.png&#8221; als PNG-Datei mit den Abmessungen 1200&#215;1000 Pixel. <em>Beachten Sie, dass das Format des Bildes durch die Dateierendung bestimmt wird.<\/em><\/p>\n\n<p>Wie beim Importieren k\u00f6nnen erweiterte Optionen mit der Option <em>opts<\/em> \u00fcbergeben werden. Ein Beispiel k\u00f6nnte die Einrichtung f\u00fcr das Rendern mit einer maximalen Zeit von 10 Sekunden sein:<\/p>\n\n<pre class=\"wp-block-code\"><code class=\"\">&gt;&gt;&gt; opts = lux.getRenderOptions()\n&gt;&gt;&gt; opts.setMaxTimeRendering(10)\n&gt;&gt;&gt; lux.renderImage(\"\/path\/to\/save\/image.png\", width = 1200, height = 1000, opts = opts)<\/code><\/pre>\n\n<p>Ein weiteres Beispiel k\u00f6nnte das Rendern mit einer erweiterten Rendering-Methode mit 64 Samples, 8 Threads und 64 Ray Bounces sein:<\/p>\n\n<pre class=\"wp-block-code\"><code class=\"\">&gt;&gt;&gt; opts = lux.getRenderOptions()\n&gt;&gt;&gt; opts.setAdvancedRendering(64)\n&gt;&gt;&gt; opts.setThreads(8)\n&gt;&gt;&gt; opts.setRayBounces(64)\n&gt;&gt;&gt; lux.renderImage(\"\/path\/to\/save\/image.png\", width = 1200, height = 1000, opts = opts)<\/code><\/pre>\n","protected":false},"author":29916,"featured_media":0,"parent":16246,"menu_order":15,"template":"","manualdocumentationcategory":[19],"manual_doc_tag":[],"class_list":["post-16244","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-keyshot-de"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Scripting: Bild rendern - KeyShot 11 Manual<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scripting: Bild rendern - KeyShot 11 Manual\" \/>\n<meta property=\"og:description\" content=\"Bild rendern(GUI und Headless) Angenommen, Sie haben bereits eine BIP-Datei geladen oder Geometrie importiert und m\u00f6chten mit Scripting ein Bild rendern, dann gehen Sie wie folgt vor: In diesem Fall rendern wir das Bild nach &#8220;\/path\/to\/save\/image.png&#8221; als PNG-Datei mit den Abmessungen 1200&#215;1000 Pixel. Beachten Sie, dass das Format des Bildes durch die Dateierendung bestimmt wird. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de\" \/>\n<meta property=\"og:site_name\" content=\"KeyShot 11 Manual\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-24T12:57:52+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/manual\\\/scripting\\\/quick-start-scripting\\\/scripting-bild-rendern\\\/?lang=de\",\"url\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/manual\\\/scripting\\\/quick-start-scripting\\\/scripting-bild-rendern\\\/?lang=de\",\"name\":\"Scripting: Bild rendern - KeyShot 11 Manual\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/#website\"},\"datePublished\":\"2022-02-24T12:09:42+00:00\",\"dateModified\":\"2022-02-24T12:57:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/manual\\\/scripting\\\/quick-start-scripting\\\/scripting-bild-rendern\\\/?lang=de#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/manual\\\/scripting\\\/quick-start-scripting\\\/scripting-bild-rendern\\\/?lang=de\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/manual\\\/scripting\\\/quick-start-scripting\\\/scripting-bild-rendern\\\/?lang=de#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scripting\",\"item\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/manual\\\/scripting\\\/?lang=de\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Quick Start Scripting\",\"item\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/manual\\\/scripting\\\/quick-start-scripting\\\/?lang=de\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Scripting: Bild rendern\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/#website\",\"url\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/\",\"name\":\"KeyShot 11 Manual\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/manual.keyshot.com\\\/keyshot11\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scripting: Bild rendern - KeyShot 11 Manual","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de","og_locale":"en_US","og_type":"article","og_title":"Scripting: Bild rendern - KeyShot 11 Manual","og_description":"Bild rendern(GUI und Headless) Angenommen, Sie haben bereits eine BIP-Datei geladen oder Geometrie importiert und m\u00f6chten mit Scripting ein Bild rendern, dann gehen Sie wie folgt vor: In diesem Fall rendern wir das Bild nach &#8220;\/path\/to\/save\/image.png&#8221; als PNG-Datei mit den Abmessungen 1200&#215;1000 Pixel. Beachten Sie, dass das Format des Bildes durch die Dateierendung bestimmt wird. [&hellip;]","og_url":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de","og_site_name":"KeyShot 11 Manual","article_modified_time":"2022-02-24T12:57:52+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de","url":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de","name":"Scripting: Bild rendern - KeyShot 11 Manual","isPartOf":{"@id":"https:\/\/manual.keyshot.com\/keyshot11\/#website"},"datePublished":"2022-02-24T12:09:42+00:00","dateModified":"2022-02-24T12:57:52+00:00","breadcrumb":{"@id":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/scripting-bild-rendern\/?lang=de#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/manual.keyshot.com\/keyshot11\/"},{"@type":"ListItem","position":2,"name":"Scripting","item":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/?lang=de"},{"@type":"ListItem","position":3,"name":"Quick Start Scripting","item":"https:\/\/manual.keyshot.com\/keyshot11\/manual\/scripting\/quick-start-scripting\/?lang=de"},{"@type":"ListItem","position":4,"name":"Scripting: Bild rendern"}]},{"@type":"WebSite","@id":"https:\/\/manual.keyshot.com\/keyshot11\/#website","url":"https:\/\/manual.keyshot.com\/keyshot11\/","name":"KeyShot 11 Manual","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/manual.keyshot.com\/keyshot11\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/manual_documentation\/16244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/users\/29916"}],"version-history":[{"count":0,"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/manual_documentation\/16244\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/manual_documentation\/16246"}],"wp:attachment":[{"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/media?parent=16244"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/manualdocumentationcategory?post=16244"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/manual.keyshot.com\/keyshot11\/wp-json\/wp\/v2\/manual_doc_tag?post=16244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}