Exemple #1
0
	def test( self ) :

		n = nuke.nodes.Axis()

		f = IECoreNuke.FnAxis( n )
		self.assertEqual( f.getLocalMatrix(), imath.M44f() )

		IECoreNuke.setKnobValue( n.knob( "translate" ), imath.V3f( 1, 2, 3 ) )
		self.assertEqual( f.getLocalMatrix(), imath.M44f().translate( imath.V3f( 1, 2, 3 ) ) )
Exemple #2
0
    def test(self):

        n = nuke.nodes.Axis()

        f = IECoreNuke.FnAxis(n)
        self.assertEqual(f.getLocalMatrix(), imath.M44f())

        IECoreNuke.setKnobValue(n.knob("translate"), imath.V3f(1, 2, 3))
        self.assertEqual(f.getLocalMatrix(),
                         imath.M44f().translate(imath.V3f(1, 2, 3)))