<?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[Child render setting does not inhertit from parent]]></title><description><![CDATA[<p dir="auto">Hi<br />
I'm making a script that:<br />
1 Copies (clones) the active render setting<br />
2 Inserts a new one based on the clone<br />
3 Then makes a new RS rendersetting<br />
4 Inserts the new RS render setting as a child of the clone in step 2</p>
<p dir="auto">But when the child is inserted, it's settings are not inherited from the parent. The "Inherit Parent Behavior" is active on the child but when i right click on a parameter in the child render setting the "Inherit Parent Setting" is grayed out.</p>
<pre><code>import c4d
import redshift
from c4d import gui

def main():
    active = doc.GetActiveRenderData() # Get active renderdata

    default = active.GetClone() # Clone active renderdata
    default.SetName("Redshift Default") # Set name
    redshift.FindAddVideoPost(default, redshift.VPrsrenderer)
    default[c4d.RDATA_RENDERENGINE] = redshift.VPrsrenderer # Set Redshift as render
    doc.InsertRenderData(default) # insert new render setting

    raw = c4d.documents.RenderData() # Make new renderdata
    raw.SetName("Redshift Raw") # Set name
    redshift.FindAddVideoPost(raw, redshift.VPrsrenderer)
    raw[c4d.RDATA_RENDERENGINE] = redshift.VPrsrenderer # Set Redshift as render
    doc.InsertRenderData(raw, default) # insert "redshift raw" as a child of redshift default

    doc.SetActiveRenderData(default) #set new setting as the active render setting
    c4d.EventAdd()

# Execute main()
if __name__=='__main__':
    main()
</code></pre>
<p dir="auto"><img src="https://developers.maxon.net/forum/assets/uploads/files/1634205229065-12eb8526-2832-4b02-b809-094af86dc559-image.png" alt="12eb8526-2832-4b02-b809-094af86dc559-image.png" class=" img-fluid img-markdown" /><br />
<img src="https://developers.maxon.net/forum/assets/uploads/files/1634205254915-24ed2070-7b56-429d-8664-e3d73c55782d-image.png" alt="24ed2070-7b56-429d-8664-e3d73c55782d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I was expecting that the child would default to inheriting settings from its parent.<br />
Any help appreciated</p>
<p dir="auto">Regards<br />
Bonsak</p>
]]></description><link>http://developers.maxon.net/forum/topic/13637/child-render-setting-does-not-inhertit-from-parent</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 20:54:55 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/13637.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Oct 2021 09:55:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Child render setting does not inhertit from parent on Wed, 06 Apr 2022 14:13:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I stumbled upon the same problem. The script from bonsak didn't solve the problem for me.<br />
But thanks to a tip I found a working solution.<br />
It is possible to make a parent-child setup. But you have to change the values in the parent settings after creating the child settings.</p>
<pre><code>import c4d
from c4d import gui
import redshift

def main():
    #Create main render setting
    rd = c4d.documents.RenderData()
    rd.SetName('render_group')
    rd[c4d.RDATA_RENDERENGINE] = redshift.VPrsrenderer
    rd_red = redshift.FindAddVideoPost(rd, redshift.VPrsrenderer)
    doc.InsertRenderData(rd)

    #Create child render setting
    child_setting = c4d.documents.RenderData()
    child_setting.SetName('child setting')
    child_setting[c4d.RDATA_RENDERENGINE] = redshift.VPrsrenderer
    doc.InsertRenderData(child_setting , rd)
    redshift.FindAddVideoPost(child_setting, redshift.VPrsrenderer)
    doc.InsertRenderData(child_setting , rd)

    #Change main render settings
    rd[c4d.RDATA_XRES] = 1920.0
    rd[c4d.RDATA_YRES] = 1080.0
    rd[c4d.RDATA_FRAMERATE] = 25.0
    rd[c4d.RDATA_FORMAT] = 1023671 #PNG
    rd[c4d.RDATA_FORMATDEPTH] = 1 #depth 16bit

    #Change Redshift post effect
    rd_red[c4d.REDSHIFT_RENDERER_ENABLE_AUTOMATIC_SAMPLING] = 0
    rd_red[c4d.REDSHIFT_RENDERER_UNIFIED_MIN_SAMPLES] = 32
    rd_red[c4d.REDSHIFT_RENDERER_UNIFIED_MAX_SAMPLES] = 256
    rd_red[c4d.REDSHIFT_RENDERER_MOTION_BLUR_ENABLED] = 1
    rd_red[c4d.REDSHIFT_RENDERER_COLOR_MANAGEMENT_OCIO_VIEW] = 'Un-tone-mapped'


if __name__=='__main__':
    main()
</code></pre>
]]></description><link>http://developers.maxon.net/forum/post/68700</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/68700</guid><dc:creator><![CDATA[arjo]]></dc:creator><pubDate>Wed, 06 Apr 2022 14:13:01 GMT</pubDate></item><item><title><![CDATA[Reply to Child render setting does not inhertit from parent on Wed, 03 Nov 2021 10:31:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/bonsak">@<bdi>bonsak</bdi></a>,</p>
<p dir="auto">I assume you do not have any further questions here? Without any further questions, we will regard this topic as solved and flag it accordingly by Monday, September, the 8th.</p>
<p dir="auto">Thank you for your understanding,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/67925</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67925</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Wed, 03 Nov 2021 10:31:01 GMT</pubDate></item><item><title><![CDATA[Reply to Child render setting does not inhertit from parent on Tue, 19 Oct 2021 08:04:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a><br />
Maybe I'm just confused as to what is supposed to be expected behavior. The "Clone active renderdata" comment is a typo from a previous version <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> Sorry about that.<br />
What i figured out (in my second version of the script) was that if i create a default renderdata instance as a child of a parent render setting directly (doc.InsertRenderData(raw, default)), it does not snap to all the values of the parent, But if i make a default renderdata instance in the root of the render settings, and then make it a child of the parent after wards, all its values will snap to the parent. That puzzled me, but as i now have a version that works like i want it to, we dont have to investigate this any further.<br />
Thank you very much for your time.</p>
<p dir="auto">Regards<br />
Bonsak</p>
]]></description><link>http://developers.maxon.net/forum/post/67838</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67838</guid><dc:creator><![CDATA[bonsak]]></dc:creator><pubDate>Tue, 19 Oct 2021 08:04:19 GMT</pubDate></item><item><title><![CDATA[Reply to Child render setting does not inhertit from parent on Mon, 18 Oct 2021 10:32:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/bonsak">@<bdi>bonsak</bdi></a>,</p>
<p dir="auto">unfortunately, I still cannot reproduce your problem. Your script runs fine for me and does what its code tells it to do. One source of ambiguity might be your function <code>MakeRSRaw()</code>.</p>
<pre><code>def MakeRsRaw(renderdata, parent):
    raw = c4d.documents.RenderData() # Clone active renderdata
    raw.SetName("Redshift Raw") # Set name
    # ...
</code></pre>
<p dir="auto">The comment in code and the fact that you say here in the thread <em>'i' am copying has non default values, the child will not get these values'</em> implies that there is a misunderstanding. First of all, there is obviously no cloning going on in your code. You simply create a RenderData instance from scratch which then will also come with default values. Secondly, <em>Inherent Parent Behavior</em> does not mean that the node data are being copied over all the time. Which you do seem to expect when you expect a new instance of RenderData to automatically 'snap' to its parent. The option only means that a value is being copied over to the children when it is being edited on the parent. When you want the child to be a carbon copy of its parent form the getgo, you must either clone the parent or overwrite all values of the parent.</p>
<p dir="auto">I would recommend our <a href="https://help.maxon.net/c4d/en-us/#html/DRENDERSETTINGS.html" target="_blank" rel="noopener noreferrer nofollow ugc">user manual</a> for details on the topic, as it does explain it better than I do.</p>
<p dir="auto">I hope this helps and cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/67837</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67837</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Mon, 18 Oct 2021 10:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Child render setting does not inhertit from parent on Fri, 15 Oct 2021 12:56:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a><br />
Thanks for looking into this.<br />
Sorry for not supplying enough info.<br />
This is in c4d version 24.037, Windows 10 and RS version 3.0.53<br />
I did actually tag the post initially <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">I did some more digging and found out that if the renderdata i'm copying has non default values, the child will not get these values after the script has executed. Try this:</p>
<ul>
<li>In your "My Render Settings" change the render resolution</li>
<li>Make a depth AOV in the RS AOV manager</li>
<li>Run the script<br />
= The resolution of the child is 1280x720 an there is no AOV in the childs RS AOV manager, but the parent has the same res as the original and a depth AOV in the manager (at least on my machine)</li>
</ul>
<p dir="auto">But i figured out how to solve this by first inserting the child in the root of the Render Settings and then making it a child of the Redshift Deafult:</p>
<pre><code>import c4d
import redshift
from c4d import gui

def MakeRsDefault(renderdata):
    default = renderdata.GetClone() # Clone active renderdata
    default.SetName("Redshift Default") # Set name

    # Set output format
    default[c4d.RDATA_FORMAT] = 1016606
    default[c4d.RDATA_FORMATDEPTH] = 2 # 32 bits
    default[c4d.RDATA_NAMEFORMAT] = 6 # name.000.ext
    doc.InsertRenderData(default) # insert new render setting

    # Set ACES 1.0
    defaultvprs = redshift.FindAddVideoPost(default, redshift.VPrsrenderer)
    defaultvprs[c4d.REDSHIFT_RENDERER_COLOR_MANAGEMENT_OCIO_VIEW] = 'ACES 1.0 SDR-video'
    defaultvprs[c4d.REDSHIFT_RENDERER_COLOR_MANAGEMENT_COMPENSATE_VIEW_TRANSFORM] = 1

    return default

def MakeRsRaw(renderdata, parent):
    raw = c4d.documents.RenderData() # Clone active renderdata
    raw.SetName("Redshift Raw") # Set name

    # Set output format
    raw[c4d.RDATA_FORMAT] = 1016606
    raw[c4d.RDATA_FORMATDEPTH] = 2 # 32 bits
    raw[c4d.RDATA_NAMEFORMAT] = 6 # name.000.ext
    doc.InsertRenderData(raw) # insert "redshift raw"

    # Set Raw
    rawvprs = redshift.FindAddVideoPost(raw, redshift.VPrsrenderer)
    raw[c4d.RDATA_RENDERENGINE] = redshift.VPrsrenderer # Set Redshift as render
    rawvprs[c4d.REDSHIFT_RENDERER_COLOR_MANAGEMENT_OCIO_VIEW] = 'Raw'
    rawvprs[c4d.REDSHIFT_RENDERER_COLOR_MANAGEMENT_COMPENSATE_VIEW_TRANSFORM] = 0
    doc.InsertRenderData(raw, parent) # Make "redshift raw" a child of redshift default

    return raw

def main():
    active = doc.GetActiveRenderData() # Get active renderdata

    # Check if Redshift is installed
    vprs = redshift.FindAddVideoPost(active, redshift.VPrsrenderer)
    if vprs is None:
        return
    # Check if Redshift is active render
    if active[c4d.RDATA_RENDERENGINE] == 1036219:
        parent = MakeRsDefault(active)
        child = MakeRsRaw(active, parent)
    else:
        gui.MessageDialog('Only works with Redshift Rendersettings')
        return


    # Set project settings for linear workflow
    doc[c4d.DOCUMENT_LINEARWORKFLOW] = 1
    doc[c4d.DOCUMENT_COLORPROFILE] = 0

    doc.SetActiveRenderData(parent) # set new setting as the active render setting
    parent.SetBit(c4d.BIT_ACTIVERENDERDATA)
    c4d.EventAdd()

# Execute main()
if __name__=='__main__':
    main()
</code></pre>
<p dir="auto">Regards<br />
Bonsak</p>
]]></description><link>http://developers.maxon.net/forum/post/67827</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67827</guid><dc:creator><![CDATA[bonsak]]></dc:creator><pubDate>Fri, 15 Oct 2021 12:56:20 GMT</pubDate></item><item><title><![CDATA[Reply to Child render setting does not inhertit from parent on Fri, 15 Oct 2021 10:07:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/bonsak">@<bdi>bonsak</bdi></a>,</p>
<p dir="auto">thank you for reaching out to us. Please remember to follow our <a href="https://plugincafe.maxon.net/guidlines_cp" target="_blank" rel="noopener noreferrer nofollow ugc">Forum Guidelines</a> regarding tagging your postings.</p>
<p dir="auto">About your question: I cannot reproduce the behavior described by you on either S24 or R25. On which specific version and OS are you? I assume S24.110, but which OS? What might be a source for confusion is how that feature works in the first place. The command <em>Inherit Parent Setting</em> will simply copy over settings from the parent. It will always be grayed out when the parameter of the <code>RenderData</code> which is a child of another <code>RenderData</code> is already of the same value as the parameter of the parent. See end of my posting for details.</p>
<p dir="auto">If this does not solve your problem, I would have to ask you to provide more precise information as lined out in the <a href="https://plugincafe.maxon.net/guidlines_cp" target="_blank" rel="noopener noreferrer nofollow ugc">Forum Guidelines</a>.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
<p dir="auto">edit: Hm, I could have sworn that the tags have not been there 5 minutes ago. Probably just getting old <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> But It would be still necessary that you clarify the OS.</p>
<p dir="auto">How <em>Inherit Parent Setting</em> works:<br />
<img src="https://developers.maxon.net/forum/assets/uploads/files/1634292233373-1.gif" alt="1.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/post/67826</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/67826</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Fri, 15 Oct 2021 10:07:14 GMT</pubDate></item></channel></rss>