Open `Project settings' (hotkey `S' in DAG) and in the tab `Views' press `Set up views for stereo' to create views for stereo in project.
To produce different image for different views implement virtual void DD::Image::Op::append (Hash & hash) like this class MyStereo : public DD::Image::Iop { .... int leftView() const; int rightView() const; .... void append (Hash & hash) { if( outputContext().view()==leftView() ) hash << "Left"; else if( outputContext().view()==rightView() ) hash << "Right"; else hash << "nothing"; } void engine (int y, int x, int r, ChannelMask, Row & row) { if( outputContext().view()==leftView ) { .... } else if( outputContext().view()==rightView ) { ..... } else { row.erase; } } }; 2012/4/16 Steven Booth <sbo...@legend3d.com>: > Yes... I know stereo pairs are two views. The question is; how do you > configure an Iop to output a pair of views instead of just a single one? You > say one would 'specify append function'. Which class would one append to? > > -----Original Message----- > From: nuke-dev-boun...@support.thefoundry.co.uk > [mailto:nuke-dev-boun...@support.thefoundry.co.uk] On Behalf Of Georgiy Osipov > Sent: Sunday, April 15, 2012 7:49 AM > To: nuke-dev@support.thefoundry.co.uk > Subject: Re: [Nuke-dev] Re: Stereo Ops > > Input and output stereo pair via two views. You also should add view pair > knob to allow user to select views for input/output. Select view according to > output context, and specify append function to allow Nuke differ views. > > 2012/4/15, Steve3D <nuke-dev-re...@thefoundry.co.uk>: >> So.... it's impossible to create a stereo-out operator currently, then? >> >> The input is easy; outputting a stereo pair seems to be impossible, >> unless I'm missing something. >> >> >> >> > _______________________________________________ > Nuke-dev mailing list > Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > (CONFIDENTIALITY NOTICE: The information contained in this email may be > confidential and/or privileged. This email is intended to be reviewed by only > the individual or organization named above. If you are not the intended > recipient, or an authorized representative of the intended recipient, you are > hereby notified that any review, dissemination or copying of this email, or > the information contained herein is strictly prohibited. If you have received > this communication in error, please notify the sender by return email and > delete this email from your system. Thank You.) > > _______________________________________________ > Nuke-dev mailing list > Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev _______________________________________________ Nuke-dev mailing list Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev