Hey ,

if I am trying to change key.extrapolation=1 why its not working ? any idea
? even key.interpolation also not working.
Its accepting all values thats true and even if you query you can see that
value but curve not updating with that values.
Anyone know how to re compute the anim curve tried with nuke.updateGUI but
its not working too .

Thanks

On Wed, Jul 13, 2011 at 5:44 PM, Peter Pearson <[email protected]>wrote:

> 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
> Nuke-python@support.**thefoundry.co.uk<[email protected]>,
> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-python<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
>



-- 
--:: Kurian ::--
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to