<?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[How to set a custom color for a node?]]></title><description><![CDATA[<p dir="auto">It's me again!</p>
<p dir="auto">I'm wondering if there is an example to explain how we can use a custom color for a node? the nodes are grey by default but we can change their color</p>
]]></description><link>http://developers.maxon.net/forum/topic/15425/how-to-set-a-custom-color-for-a-node</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 17:37:30 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/15425.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Mar 2024 12:58:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set a custom color for a node? on Thu, 07 Mar 2024 14:21:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a> You are amazing! Thanks</p>
]]></description><link>http://developers.maxon.net/forum/post/73958</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73958</guid><dc:creator><![CDATA[momoko]]></dc:creator><pubDate>Thu, 07 Mar 2024 14:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to set a custom color for a node? on Thu, 07 Mar 2024 14:11:50 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/momoko">@<bdi>momoko</bdi></a>,</p>
<p dir="auto">thank you for reaching out to us and thank you <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dunhou">@<bdi>Dunhou</bdi></a> for all the community answers you all provide!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dunhou">@<bdi>Dunhou</bdi></a>'s second answer would be the solution, you must to run <code>myGraphNode.SetValue("maxon.NODE.BASE.COLOR", maxon.Color(1, 0, 0))</code>. With graph descriptions you can just type out the things you want to do, under <a href="https://developers.maxon.net/docs/py/2024_3_0/manuals/manual_graphdescription.html#callbacks" target="_blank" rel="noopener noreferrer nofollow ugc">Graph Descriptions: Callbacks</a> I have shown how to color in title bars. But you would not have to use a callback, you can also type out <code>Basic/Color</code> manually for each node.</p>
<p dir="auto">As data types are <code>maxon.Color</code> and <code>maxon.Vector</code> or their four component variants fine. Graph descriptions also allow you to use tuples or <code>c4d.Vector</code> and will convert the data for you.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/73957</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73957</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 07 Mar 2024 14:11:50 GMT</pubDate></item><item><title><![CDATA[Reply to How to set a custom color for a node? on Thu, 07 Mar 2024 13:58:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dunhou">@<bdi>Dunhou</bdi></a> Thank you. Do you know how I can see what kind of values I can set for it?</p>
]]></description><link>http://developers.maxon.net/forum/post/73956</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73956</guid><dc:creator><![CDATA[momoko]]></dc:creator><pubDate>Thu, 07 Mar 2024 13:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to set a custom color for a node? on Thu, 07 Mar 2024 13:56:30 GMT]]></title><description><![CDATA[<p dir="auto">well <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/momoko">@<bdi>momoko</bdi></a></p>
<p dir="auto">To change or edit the flag color of a "true node", you need to modify the "maxon.NODE.BASE.COLOR" attribute.</p>
<p dir="auto">Cheers~<br />
DunHou</p>
]]></description><link>http://developers.maxon.net/forum/post/73955</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73955</guid><dc:creator><![CDATA[Dunhou]]></dc:creator><pubDate>Thu, 07 Mar 2024 13:56:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to set a custom color for a node? on Thu, 07 Mar 2024 13:45:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dunhou">@<bdi>Dunhou</bdi></a> Thanks but I mean the color of the node itself, not the base color</p>
]]></description><link>http://developers.maxon.net/forum/post/73954</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73954</guid><dc:creator><![CDATA[momoko]]></dc:creator><pubDate>Thu, 07 Mar 2024 13:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to How to set a custom color for a node? on Thu, 07 Mar 2024 13:25:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/momoko">@<bdi>momoko</bdi></a>,</p>
<p dir="auto">You should take a look at <a href="https://github.com/PluginCafe/cinema4d_py_sdk_extended/blob/master/scripts/05_modules/node/create_redshift_nodematerial_2024.py" target="_blank" rel="noopener noreferrer nofollow ugc">create_redshift_nodematerial_2024.py</a>, I will show you a custom and easier solution with Renderer lib, see codes[1],  you can check how it works but you must have a basic understanding of Node Graph.</p>
<p dir="auto">And if you use c4d above 2024.3.0, you are highly suggested to look <a href="https://developers.maxon.net/docs/py/2024_3_0/manuals/manual_graphdescription.html" target="_blank" rel="noopener noreferrer nofollow ugc">Graph Description Manual</a> , see codes[2]</p>
<p dir="auto">Cheers~<br />
DunHou</p>
<pre><code class="language-python">import c4d, maxon
from Renderer import Redshift,EasyTransaction

def main() -&gt; None:
    material: c4d.BaseMaterial = Redshift.Material("MyMaterial")
    with EasyTransaction(material) as tr:
        
        surface = tr.GetRootBRDF()

        tr.SetShaderValue(
            surface,
            "com.redshift3d.redshift4c4d.nodes.core.standardmaterial.base_color" ,
            maxon.Vector(1,0,0)
            )

        tr.InsertMaterial()

if __name__ == '__main__':
    main()
</code></pre>
<pre><code class="language-python">import maxon
from maxon import GraphDescription

GraphDescription.ApplyDescription(
    GraphDescription.CreateGraph(name="Basic Example"), {
        GraphDescription.Type: "Output",
        "Surface": {
            GraphDescription.Type: "Standard Material",
            "Base/Color": maxon.Vector(1, 0, 0),
        }
    }
)
</code></pre>
]]></description><link>http://developers.maxon.net/forum/post/73953</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/73953</guid><dc:creator><![CDATA[Dunhou]]></dc:creator><pubDate>Thu, 07 Mar 2024 13:25:37 GMT</pubDate></item></channel></rss>