Possible to script or hotkey to switch to a custom camera?

I have a hotkey for switching to perspective view that I can set in the keyboard mappings.  However I want to switch back and forth between perspective and a specific camera name that i've created like "Camera1".  Is there any way to assign a hotkey for this camera, either in the mappings or through a script/action?  If it simplifies things it is always named the same name and it is the only camera in a scene besides the default viewports.  For this situation, switching between perspective and the last used camera or something like that would work as well.  Any ideas?

Comments

  • Richard HaseltineRichard Haseltine Posts: 102,418

    You can find nodes by name or label, so a scripts could do that, check the found node inherited DzCamera, and thn swap to it in the same way as your switch to Perspective View.

  • FalcoFalco Posts: 241

    Hmm, I'm just setting the perspective hotkey in the keyboard mappings because theres already a daz hotkey for it.  I don't know enough about scripting to figure out how to script that on my own unfortunately.  

Sign In or Register to comment.