<?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[[ANSWERED] How to Set the Scale Min&#x2F;Max of Inputs in Pythoner Actor?]]></title><description><![CDATA[<p>Hi there,</p>
<p>I'm working with the Pythoner actor and I'm trying to figure out if there is a way of indicating that an input should have a particular range to start with inside the python code?</p>
<p>I'm able to get it to make different kinds of inputs but they always populate as "0". . . . </p>
<p>Any guidance would be great.</p>
<p>Thank you!</p>
<p>-=Alex=-</p>
<p>(edit: added extra words for more clarity)</p>]]></description><link>https://community.troikatronix.com/topic/9411/answered-how-to-set-the-scale-min-max-of-inputs-in-pythoner-actor</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 08:45:18 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/9411.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Apr 2026 03:41:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [ANSWERED] How to Set the Scale Min&#x2F;Max of Inputs in Pythoner Actor? on Mon, 06 Apr 2026 14:40:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@dusx</a> said:</p>
<blockquote>With that said, you use the standard method of mutating your inputs/outputs to the expected types. </blockquote>
<p> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/146">@Aolis</a> </p>
<p>These User Actors of mine can be quite useful for that: <a href="https://troikatronix.com/add-ons/mutator-user-actors/" target="_blank">https://troikatronix.com/add-ons/mutator-user-actors/</a></p>]]></description><link>https://community.troikatronix.com/post/57425</link><guid isPermaLink="true">https://community.troikatronix.com/post/57425</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Mon, 06 Apr 2026 14:40:46 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] How to Set the Scale Min&#x2F;Max of Inputs in Pythoner Actor? on Mon, 06 Apr 2026 00:33:47 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@dusx</a></p><p>Copy this. </p><p>Thank you for this information. I appreciate it. :)</p>]]></description><link>https://community.troikatronix.com/post/57424</link><guid isPermaLink="true">https://community.troikatronix.com/post/57424</guid><dc:creator><![CDATA[Aolis]]></dc:creator><pubDate>Mon, 06 Apr 2026 00:33:47 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] How to Set the Scale Min&#x2F;Max of Inputs in Pythoner Actor? on Mon, 06 Apr 2026 15:43:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/146">@aolis</a></p>
<p>Pythoner basically passes values from Isadora into your Python script as raw Python objects. There is:<br />❌ No built-in type system for inputs/outputs<br />❌ No way to declare types like “this input is always an int” at the actor level<br />✅ Only positional passing of values</p>
<p>With that said, you use the standard method of mutating your inputs/outputs to the expected types. </p>
<p>Additionally in your python code it is useful to test the type of inputs to ensure proper function. (I honestly don't do this often because I'm quite careful with my input connections. Using user actors to contain my pythoner scripts makes this even easier because you can set the type of the user inputs before attaching them).</p>
<p>You might look into using:</p>
<p><strong># Validate types<br />if not isinstance(my_input, expected_type):<br />    # convert or handle error</strong></p>
<p><strong># Convert if needed<br />my_input = int(my_input)  # or float, list, etc.</strong></p>
<p>This allows you to test incoming values in your python_init() function</p>]]></description><link>https://community.troikatronix.com/post/57423</link><guid isPermaLink="true">https://community.troikatronix.com/post/57423</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Mon, 06 Apr 2026 15:43:58 GMT</pubDate></item></channel></rss>