<?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[Python Script Gui: Use EditSlider Get Float]]></title><description><![CDATA[<p dir="auto">hello</p>
<p dir="auto">i want to use  EditSlider in my script to control  weight, range  (0.00 - 1.00)  or other .i search in SDK  and use "GeDialog.AddEditSlider(id, flags, initw=80, inith=0)",how can i  change  the range   and   get  float  just  like set "user data"?</p>
<p dir="auto">thank you!</p>
]]></description><link>http://developers.maxon.net/forum//topic/11076/python-script-gui-use-editslider-get-float</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 10:31:21 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/11076.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Oct 2018 07:33:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python Script Gui: Use EditSlider Get Float on Tue, 16 Oct 2018 07:42:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mike">@<bdi>mike</bdi></a> if the previous post solves your issue, please mark it as the correct answers. It will switch the topic as solved. To do so please read <a href="https://developers.maxon.net/forum/topic/11004/q-a-new-functionality" target="_blank" rel="noopener noreferrer nofollow ugc">Q&amp;A functionality</a>.<br />
Of course, if you didn't test my previous post, or may have follow-up questions, do not mark as solved and take as much time as you need to ask us. But if there is nothing more to add please mark your topic as solved.</p>
<p dir="auto">Cheers,<br />
Maxime</p>
]]></description><link>http://developers.maxon.net/forum//post/56046</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56046</guid><dc:creator><![CDATA[m_adam]]></dc:creator><pubDate>Tue, 16 Oct 2018 07:42:53 GMT</pubDate></item><item><title><![CDATA[Reply to Python Script Gui: Use EditSlider Get Float on Mon, 15 Oct 2018 09:54:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/m_adam">@<bdi>m_adam</bdi></a> Thank you for your help!</p>
]]></description><link>http://developers.maxon.net/forum//post/56028</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56028</guid><dc:creator><![CDATA[mike]]></dc:creator><pubDate>Mon, 15 Oct 2018 09:54:16 GMT</pubDate></item><item><title><![CDATA[Reply to Python Script Gui: Use EditSlider Get Float on Mon, 15 Oct 2018 09:30:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mike">@<bdi>mike</bdi></a>, first of all I would like to remind you to read <a class="plugin-markdown-hidden-link small link-danger"></a> and use the <a>Q&amp;A functionnality</a>.</p>
<p dir="auto">Regarding your question, here is an example of a basic GeDialog, which make use to <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d.gui/GeDialog/index.html?highlight=editslider#GeDialog.SetFloat" target="_blank" rel="noopener noreferrer nofollow ugc">SetFloat</a> to define a range.</p>
<pre><code>import c4d

class MonDlg( c4d.gui.GeDialog):
    idSlider = 1000
    idButton = 1001

    # Create the Layout
    def CreateLayout(self):
        self.AddEditSlider(self.idSlider, c4d.BFH_SCALE|c4d.BFV_SCALE, initw=100, inith=20)
        self.AddButton(self.idButton, c4d.BFH_SCALE|c4d.BFV_SCALE, initw=100, inith=20,name = 'Get Value')	
        return True

    # Called after CreateLayout
    def InitValues(self):
        self.SetFloat(self.idSlider, 0.25, min=0.0, max=1.0, step=0.01, min2=0.0, max2=0.0)
        return True

    # Called for each interaction from a widget
    def Command(self, id, msg):
        if id == self.idButton:
            print self.GetFloat(self.idSlider)
        
        return True

def main():
    dlg = MonDlg()
    dlg.Open(c4d.DLG_TYPE_MODAL)

if __name__=='__main__':
    main()
</code></pre>
<p dir="auto">If you have any questions please let me know.<br />
Cheers,<br />
Maxime!</p>
]]></description><link>http://developers.maxon.net/forum//post/56026</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56026</guid><dc:creator><![CDATA[m_adam]]></dc:creator><pubDate>Mon, 15 Oct 2018 09:30:37 GMT</pubDate></item></channel></rss>