> I really though for a while that was odd, disturbing and useless*...* > But it can be actually quite usefull ; )
Useful, but also extremely confusing when you do not know there is two ways to query an attribute. On Fri, Apr 17, 2015 at 3:36 PM Aurélyen Daudet <[email protected]> wrote: > > *I was unaware of that getValue() and value() returned different things...* > > That is true for Pulldown knobs, and Checkbox knobs, at least. > I didn't made an exhaustive research ; ) > For Checkbox, both methods will return 1 or 0, but one will return a > Boolean, the other a Float Number. > Probably, you might find other knobs with a similar behavior. > (Int or Float Vs String or Boolean ?...) > > I really though for a while that was odd, disturbing and useless > *...* > But it can be actually quite usefull ; ) > > Cheers. > > -- > Aurélyen DAUDET - Enseignant Nuke et Compositing > [email protected] - www.artfx.fr - blog.artfx.fr > > > > On 17 April 2015 at 15:01, Fredrik Averpil <[email protected]> > wrote: > >> Awesome, thanks. I was unaware of that getValue() and value() returned >> different things... >> >> I just had to do this to set the codec to MPEG-4: >> nuke.toNode(node.name())['meta_codec'].setValue('mp4v') >> >> Cheers, >> Fredrik >> >> >> >> > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
