THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/11/2010 at 13:06, xxxxxxxx wrote:
Cinema 4D Version: 12
Language(s) : PYTHON ;
I have a working GeDialog and it is no problem to initiate the gadgets with values for example a bool: self.SetBool(GI_CheckB, GI_CheckB_read)
but the Slider(GeDialog.AddSlider(id, flags[, initw=80][, inith=0])) makes problems.
for example for
print self.SetReal(GI_slider, 50.0)
print self.SetReal(GI_slider, 50)
I get a False
I only get True with
print self.SetString(GI_slider, 50)
ether way there is no posibility to use the slider once it got a value. It freezes at -1e+308
am I mistaken, or is something wrong
thanks a lot
On 02/11/2010 at 14:00, xxxxxxxx wrote:
Hi Jops, can you please send the bug report to maxon via the bug reporter?
On 03/11/2010 at 01:45, xxxxxxxx wrote:
thanks for your reply
so you could reproduce it?
As I am still new to programing there is the posibility that I just did something wrong?!
On 10/11/2010 at 02:36, xxxxxxxx wrote:
Have news from maxon.
this is a Bug and will be fixed in the next service update.
so this work around is just needed for R12.028.
class TestDialog(gui.GeDialog) :
SLIDER_1 = 1000
def CreateLayout(self) :
#initw is 0 on default, must be >0
self.AddSlider(TestDialog.SLIDER_1, c4d.BFH_SCALEFIT, initw=90, inith=0)
def InitValues(self) :
#please pass min, max, step
print self.SetReal(TestDialog.SLIDER_1, value=50.0, min=0, max=1000, step=0.1)