I have this problem where I'm unable to get the function FrameSelected()
to work
Basically in my scene, there is a camera called TT_CAM and a list of models with the labels called 'Model' (It's like pCube/Sphere etc are called polygon)
My objective is when the user executes the script, the viewport will change to TT_CAM while focusing ('f' keyboard key) on all the Model objects.
I tried using the code below but it fails for the FrameSelected.
Here's what I have tried:
import maya.cmds as cmds
cmds.lookThru("TT_CAM")
mAssets = cmds.select('Model*')
#cmds.viewFit(mAssets)
cmds.FrameSelected(mAssets)