<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Executing a Redshift texture bake from Python]]></title><description><![CDATA[<p dir="auto">Hi - I'm trying to execute a texture bake from an RS BakeSet from Python so we can run these on our render farm (e.g. non-UI session).</p>
<p dir="auto">I found the functions c4d.utils.InitBakeTexture() and c4d.utils.BakeTexture() but I always get a black image. After a lot of googling I'm beginning to suspect these functions are using the old renderer and not Redshift but all the examples and documentation I can find about executing a Redshift render from Python are for a regular scene render, not a texture bake.<br />
Can you point me to (or provide) an example of how to execute the bake of a RS BakeSet from Python?</p>
]]></description><link>http://developers.maxon.net/forum/topic/16407/executing-a-redshift-texture-bake-from-python</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:23:03 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/16407.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Apr 2026 22:28:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Executing a Redshift texture bake from Python on Wed, 29 Apr 2026 10:35:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mplec1">@<bdi>mplec1</bdi></a>,</p>
<p dir="auto">Welcome to the Maxon developers forum and its community, it is great to have you with us!</p>
<h4>Getting Started</h4>
<p dir="auto">Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.</p>
<ul>
<li><a href="/forum/topic/15242/">Forum Overview</a>: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.</li>
<li><a href="/forum/topic/15244/">Support Procedures</a>: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.</li>
<li><a href="/forum/topic/15243/">Forum Features</a>: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.</li>
</ul>
<p dir="auto">It is <strong>strongly</strong> recommended to read the first two topics carefully, especially the section <a href="/forum/topic/15244/support-procedures/4">Support Procedures: How to Ask Questions</a>.</p>
<h4>About your First Question</h4>
<p dir="auto">The bake tag and by extension <code>cinema::BakeTexture</code> (and its Python equivalent <code>c4d.utils.BakeTexture</code>) unfortunately do not support Redshift, even for the older Xpresso based materials.</p>
<p dir="auto">Redshift uses the tools found in <code>Redshift/Tools/Texture Baking</code> for baking. And while you can programmatically create a <a href="https://help.maxon.net/c4d/en-us/#_REDSHIFT_/html/Baking.html" target="_blank" rel="noopener noreferrer nofollow ugc">bake set</a> and then programmatically click the 'Bake' button in it (which both would also work in a headless version of Cinema 4D, such as c4dpy), the following dialog which opens to set baking details and actually start the rendering is sealed, i.e., you cannot interact with it from the public API. And opening such dialog would also fail in a headless Cinema 4D instance.</p>
<p dir="auto">So, I am afraid there is currently no solution for your problem. You can technically export the whole scene to a format such FBX or USD, and use the builtin baking output (which would also work in a headless environment, as long as you do NOT pass <code>SAVEDOCUMENTFLAGS_DIALOGSALLOWED</code> to the save/export operation). But the output of that automated baking is often of poor quality compared to manually baking object(s) via bake sets.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/77136</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77136</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Wed, 29 Apr 2026 10:35:31 GMT</pubDate></item></channel></rss>