mcjSelectViewcam - one click script when your scene is full of cameras

mCasualmCasual Posts: 4,607
edited August 2022 in Freebies

running this script will select the current viewport camera and de-select whatever was selected

as long as the camera is not one of Studio's perspective, left/top etc...

 

var vmgr = MainWindow.getViewportMgr();

var vport = vmgr.getActiveViewport().get3DViewport();

var cam = vport.getCamera();

var camIsInTheScene = Scene.findNode( cam.name );

if( camIsInTheScene )

{

Scene.selectAllNodes( false )

camIsInTheScene.select( true );

}

dsa
dsa
mcjSelectViewCam20220828.dsa
314B
The Flying Love Pergola_outWEB.png
2560 x 1242 - 5M
Post edited by mCasual on

Comments

Sign In or Register to comment.