Thanks for your answer Jonathan !

You're right, I forgot to call validate and it seems that AxisOp::_validate() 
does the transfer between _matrix and _local, but I'm still stuck in a probably 
stupid problem...

My code is the following :

 Op* aCamera = Op::create("Camera");
_nukeCamera = dynamic_cast<CameraOp>(aCamera);

_nukeCamera->film_width( _haperture[time]);
_nukeCamera->film_height( _vaperture[time] );
_nukeCamera->focal_length( _focal_length[time] );
_nukeCamera->Near( _near_clip[time] );
_nukeCamera->Far( _far_clip[time] );
_nukeCamera->matrix( _matrix[time] );

_nukeCamera->validate(true)

_nukeCamera->build_handles(ctx) // ctx is a ViewerContext


Validate is derived from Op but it doesn't seem to call  AxisOp::_validate() 
and nothing happen with that call... Actually, as CameraOp as a _validate() 
public, I call directly call this function but it erase the matrix previously 
set.. I cannot do the same and directly call AxisOp::_validate(). 

How can I properly call AxisOp::_validate() from a CameraOp ? This is probably 
obvious but I cannot figure out how to get through that... :s

------------------------
Jeremy



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

Reply via email to