Example #1
0
void WriterPlugin::beginSequenceRender( const OFX::BeginSequenceRenderArguments& args )
{
	boost::filesystem::path dir( getAbsoluteDirectory() );
	if( !exists( dir ) )
	{
		BOOST_THROW_EXCEPTION( exception::NoDirectory( dir.string() ) );
	}
}
Example #2
0
void WriterPlugin::beginSequenceRender( const OFX::BeginSequenceRenderArguments& args )
{
	bfs::path dir( getAbsoluteDirectory() );
	if( !bfs::exists( dir ) )
	{
		bfs::create_directories( dir );
	}
}
Example #3
0
std::string WriterPlugin::getAbsoluteFirstFilename() const
{
	if( _isSequence )
	{
		bfs::path dir( getAbsoluteDirectory() );
		bfs::path filename (_filePattern.getFirstFilename() );
		return (dir / filename).string();
	}
	else
	{
		bfs::path filepath( _paramFilepath->getValue( ) );
		return bfs::absolute( filepath ).string( );
	}
}
Example #4
0
std::string WriterPlugin::getAbsoluteFilenameAt( const OfxTime time ) const
{
	if( _isSequence )
	{
		bfs::path dir( getAbsoluteDirectory() );
		bfs::path filename( _filePattern.getFilenameAt( boost::numeric_cast<sequenceParser::Time>(time) ) );
		return (dir / filename).string();
	}
	else
	{
		bfs::path filepath( _paramFilepath->getValue( ) );
		return bfs::absolute( filepath ).string( );
	}
}
Example #5
0
	inline std::string getAbsoluteFilename() const
	{
		return ( getAbsoluteDirectory() / _filename ).string();
	}