<?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[Gradient GRADINTPROPERTY_NOBIASPOSITION not working]]></title><description><![CDATA[<p dir="auto">Hi, I'm trying to initialize a Gradient parameter, with disabled bias positions. From the defines in <code>customgui_gradient.h</code> it seems that it is only necessary to have this in the <code>.res</code> description:</p>
<pre><code>GRADIENT MY_GRADIENT { NOBIASPOSITION; }
</code></pre>
<p dir="auto">But all my attempts to achieve this have failed. I also tried setting this property to the description container of the Gradient, but this also did not have any result.<br />
Is there something I'm missing to make this work?</p>
]]></description><link>http://developers.maxon.net/forum//topic/13201/gradient-gradintproperty_nobiasposition-not-working</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 11:37:19 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/13201.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Feb 2021 12:22:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gradient GRADINTPROPERTY_NOBIASPOSITION not working on Tue, 23 Feb 2021 10:25:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a>,</p>
<p dir="auto">Thanks for looking into this. It is not so crucial to hide the handles - I will try the custom GUI approach as you suggest.</p>
]]></description><link>http://developers.maxon.net/forum//post/65911</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/65911</guid><dc:creator><![CDATA[Deyan]]></dc:creator><pubDate>Tue, 23 Feb 2021 10:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to Gradient GRADINTPROPERTY_NOBIASPOSITION not working on Tue, 23 Feb 2021 09:43:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/deyan">@<bdi>Deyan</bdi></a>,</p>
<p dir="auto">so we talked about it and it is unfortunately as I said, you cannot hide that handle. So for now you would have to provide your own <code>CustomGuiData </code>. @m_magalhaes however pointed out that in R19 or prior, not only the step interpolation mode came with no handle, but also the linear mode. Which in in conjunction with <code>NOINJTERPOLATION</code> would probably get pretty close to what you want. We will investigate if that change was intentional or not. But considering how old these changes are, it seems rather unlikely that we will fix it even if consider it unintentional, due to the breaking of compatibilities that would imply. We might introduce a new interpolation mode then which mimics the old linear mode, but that is only a faint possibility, not a guarantee.</p>
<p dir="auto">For now the only option for you is unfortunately <code>CustomGuiData </code>.</p>
<p dir="auto">Thank you for your understanding and cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum//post/65910</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/65910</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Tue, 23 Feb 2021 09:43:31 GMT</pubDate></item><item><title><![CDATA[Reply to Gradient GRADINTPROPERTY_NOBIASPOSITION not working on Mon, 22 Feb 2021 16:30:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">so you want to get rid of the actual GUI handle, not the edit field? You can usually test this stuff with the user data editor, with which you can try out the different combinations of flags and their effects for the different custom GUIs. Since none of them does what you want to do and I do not see any other "secret" flags, I would say it is simply impossible to hide the bias handles (other than by changing the inpolation type to step). I will talk about it with the others tomorrow, but at least I currently do not see a way to do it. If this is crucial for you, you might have to implement this yourself as your own <code>CustomGuiData</code> for the gradient data type.</p>
<p dir="auto">Maybe the others have a light bulb moment, but I would not get my hopes up <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">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum//post/65905</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/65905</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Mon, 22 Feb 2021 16:30:27 GMT</pubDate></item><item><title><![CDATA[Reply to Gradient GRADINTPROPERTY_NOBIASPOSITION not working on Mon, 22 Feb 2021 16:01:40 GMT]]></title><description><![CDATA[<p dir="auto">On a second glance - it seems that the presence of <code>NOBIASPOSITION</code> in the <code>.res</code> file has some effect after all - the "Bias" parameter in the expanded gradient control per knot is missing. But the bias handles in the UI are still present, and that confused me that there is no effect at all.<br />
So my question is changing to "How to disable the bias handles?"</p>
]]></description><link>http://developers.maxon.net/forum//post/65904</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/65904</guid><dc:creator><![CDATA[Deyan]]></dc:creator><pubDate>Mon, 22 Feb 2021 16:01:40 GMT</pubDate></item><item><title><![CDATA[Reply to Gradient GRADINTPROPERTY_NOBIASPOSITION not working on Mon, 22 Feb 2021 12:57:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a>,</p>
<p dir="auto">Thanks for the fast response. I'm trying to add this gradient to a Shader node. As I mentioned - adding the suggestion from the <code>#define</code> comment in the <code>.res</code> file did not yield result.<br />
Sorry I was ambiguous in my second part - by description I meant that I also tried setting the constant as container data in the <code>ShaderData::GetDDescription(..)</code> function override that I implemented in my shader. Something similar to this:</p>
<pre><code>Bool MyShader::GetDDescription(GeListNode *node, Description *description, DESCFLAGS_DESC &amp;flags) {
	if (!node || !description) {
		return SUPER::GetDDescription(node, description, flags);
	}

	if ((flags &amp; DESCFLAGS_DESC::LOADED) == DESCFLAGS_DESC::NONE) {
		if (!description-&gt;LoadDescription(ID_MY_SHADER)) {
			return false;
		}
		flags |= DESCFLAGS_DESC::LOADED;
	}
	BaseContainer *gradientContainer=description-&gt;GetParameterI(MY_GRADIENT, nullptr);
	if (gradientContainer) {
		gradientContainer-&gt;SetBool(GRADIENTPROPERTY_NOBIASPOSITION, true);
	}

	return SUPER::GetDDescription(node, description, flags);
}
</code></pre>
]]></description><link>http://developers.maxon.net/forum//post/65900</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/65900</guid><dc:creator><![CDATA[Deyan]]></dc:creator><pubDate>Mon, 22 Feb 2021 12:57:35 GMT</pubDate></item><item><title><![CDATA[Reply to Gradient GRADINTPROPERTY_NOBIASPOSITION not working on Mon, 22 Feb 2021 12:38:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/deyan">@<bdi>Deyan</bdi></a>,</p>
<p dir="auto">Thank you for reaching out to us. We will properly answer your question tomorrow, but it might be helpful if you would provide us with the place where you are doing that. You talk about <em>description</em>, which, well, implies a description. This should work. If you were however talking about a dialog resource, defined in a <code>res</code> file, I would not be surprised about you having problems, since some elements are a bit wonky in <code>GeDialog</code> resources. So it would be nice if you can confirm that you are in a node/description.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum//post/65899</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/65899</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Mon, 22 Feb 2021 12:38:35 GMT</pubDate></item></channel></rss>