Yup, they are type double, but I was assuming the int() function would do a more intelligent conversion.
Have to do int(round(value)) whenever converting from float to int. On Fri, Nov 9, 2012 at 12:42 PM, Stephen Blair <[email protected]>wrote: > Playcontrol values are floating point, so sometimes you don't get back > an exact integer > and > print int( 99.999 ) will print 99 > > > > > > > On 09/11/2012 1:23 PM, Bradley Gabe wrote: > > Opening a new XSI scene, the frame range is set from 1 to 100 by default. > If I run the following Python code: > > print Application.GetValue("PlayControl.Out") > > the output is 100.0 > > > if I try to directly convert it to an integer: > > print int(Application.GetValue("PlayControl.Out")) > > the output is 99 > > Anyone know what is going on? > > >

