| 52 | { |
| 53 | |
| 54 | static 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 | |
| 73 | static list getFrameLists( CompoundFrameList &x ) |
| 74 | { |