Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Set Active Viewport?

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 128 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 31/07/2014 at 10:20, xxxxxxxx wrote:

      I'm trying to write a script that will frame the selected object in all views. It's easy enough to get one view working - just use CallCommand() with the ID for Frame Selected Objects - but that only works with the active viewport. Is there a way to set a different view (like Top/Front/Right) as the active viewport?

      Barring that - any suggestions on how to move viewport cameras so they're all centered on the selected object?
      Thanks!

      Donovan

      1 Reply Last reply Reply Quote 0
      • First post
        Last post