I think you need to give it an index: print cam['world_matrix'].value(0,0)
On Tue, Mar 8, 2011 at 4:45 PM, Frank Rueter <[email protected]> wrote: > matrix knobs seem o behave in mysterious ways: > > this will give me a single float value: > cam = nuke.toNode('Camera4') > print cam['world_matrix'].value() > > > while this will give me all 16 values: > print cam['world_matrix'].valueAt(300) > > Also, this only assigns the first four values, not the whole thing: > > cam = nuke.toNode('Camera4') > newCam = nuke.toNode('Camera1') > newCam['useMatrix'].setValue( True ) > newCam['matrix'].setValue( cam['world_matrix'].valueAt(300) ) > > > Do I really have to manually iterate over the values to assign them or has > someone found a nicer way of doing this? > > Cheers, > frank_______________________________________________ > Nuke-python mailing list > [email protected] > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > _______________________________________________ Nuke-python mailing list [email protected] http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
