MCPcopy Create free account
hub / github.com/ImageEngine/cortex / constructFromList

Function constructFromList

src/IECorePython/CompoundFrameListBinding.cpp:54–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52{
53
54static CompoundFrameListPtr constructFromList( list l )
55{
56 std::vector< FrameListPtr > frameLists;
57
58 for ( long i = 0; i < IECorePython::len( l ); i++ )
59 {
60 extract< FrameListPtr > ex( l[i] );
61
62 if ( !ex.check() )
63 {
64 throw Exception( "Not a FrameList" );
65 }
66
67 frameLists.push_back( ex() );
68 }
69
70 return new CompoundFrameList( frameLists );
71}
72
73static list getFrameLists( CompoundFrameList &x )
74{

Callers

nothing calls this directly

Calls 2

lenFunction · 0.70
checkMethod · 0.45

Tested by

no test coverage detected