On 13/07/11 01:45, Colin Jenken wrote:
I've been testing with this little python snipet and I can't seem to
get it to work:
nuke.selectedNode().knobs()['offset'].animations()[0].changeInterpolation(
nuke.selectedNode().knobs()['offset'].animations()[0].keys() ,
nuke.LINEAR)
This will not change my keyframes to linear but if I do this:
nuke.selectedNode().knobs()['offset'].animations()[0].changeInterpolation(
nuke.selectedNode().knobs()['offset'].animations()[0].keys() ,
nuke.CONSTANT)
it will change them to constant. If it works changing it to constant
why not linear?
Is there something I'm missing here?
Hi,
It's a bug (20082) I just fixed yesterday actually.
nuke.LINEAR in python actually mapped to CATMULL_ROM internally which
was wrong.
It's fixed for 6.2v5, 6.3v1, but for the moment, only use integer constants:
SMOOTH = 0
CONSTANT = 1
LINEAR = 2
CATMULL_ROM = 3
CUBIC = 4
Peter
--
Peter Pearson, Software Engineer
The Foundry, 6th Floor, The Communications Building,
48 Leicester Square, London, UK, WC2H 7LT
Tel: +44 (0)20 7434 0449 - Fax: +44 (0)20 7434 1550
Web: www.thefoundry.co.uk
The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python