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?

Reply via email to