Camera Autodesk Maya中的摄影机图像平面

Camera Autodesk Maya中的摄影机图像平面,camera,maya,for-in-loop,mel,Camera,Maya,For In Loop,Mel,我正在尝试使用maya 2011中的摄影机烘焙脚本,但出现图像平面错误。Maya现在似乎将变换节点放置在图像平面上方。我还看到现在有一个imagePlane过程。有人知道如何将现有图像平面附加到复制的摄影机,或者该变换节点的作用吗 string $oldCamera[] = `ls -l -sl` ; string $results[] ; string $curCam = $oldCamera[ 0 ] ; string $listRelCam[] = `listRelatives -f -

我正在尝试使用maya 2011中的摄影机烘焙脚本,但出现图像平面错误。Maya现在似乎将变换节点放置在图像平面上方。我还看到现在有一个
imagePlane
过程。有人知道如何将现有图像平面附加到复制的摄影机,或者该变换节点的作用吗

string $oldCamera[] = `ls -l -sl` ;
string $results[] ;
string $curCam = $oldCamera[ 0 ] ;

string $listRelCam[] = `listRelatives -f -type "camera" $curCam` ;
string $newCamera[] = `duplicate -rr $curCam` ;

string $oldShape[] =`listRelatives -f -s $curCam` ;
string $newShape[] = `listRelatives -f -s $newCamera[ 0 ]` ;

// Attach an image plane

string $oldShape[] =`listRelatives -f -s $curCam` ;
string $newShape[] = `listRelatives -f -s $newCamera[ 0 ]` ; 
string $imagePlanes[] = `listConnections -d 1 ( $oldShape[ 0 ] + ".imagePlane" )` ; 

int $count = 0 ;

for ( $im in $imagePlanes ) {
    connectAttr -f ( $im + ".message" )( $newShape[ 0 ] + ".imagePlane[ " + $count + " ]" ) ;
    $count++ ;
}
我也试过这种方法,但没有成功

int $count = 0 ;

for ( $im in $imagePlanes ) {
    $tempName = `imagePlane -q -n $im` ;
    connectAttr -f ( $tempName[ 0 ] + ".message" )( $newShape[ 0 ] + ".imagePlane[ " + $count + " ]" ) ;
    $count++ ;
}

imagePlane-e-分离imagePlane1; imagePlane-e-camera2