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

    TestClipping3D

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 209 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 17/09/2013 at 08:05, xxxxxxxx wrote:

      Hi, _<_o:_<_o:p_>_o:p>
      _
      I'm trying to find out if a bounding box is visible in the _<_o:_<_o:p_>_s view.
      I've only found a way to test if the bounding box is visible _<_o:_<_o:p_>_editor's view:
       
      _view=doc.GetActiveBaseDraw()
      resul_<_o:_<_o:p_>_torview.TestClipping3D(mp, rad, mg)
       
      Does anyone know how to replace "edito_<_o:_<_o:p_>_so that the function access to the camera's view?
      _ 10pt" =Msonormal>_"mso-ansi-: EN-US" lang=EN-US>

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 20/09/2013 at 10:07, xxxxxxxx wrote:

        GetActiveBaseDraw() does not return a gui.EditorView instance, but a BaseDraw instance as
        the name implies (the BaseDraw attached to the currently active BaseView). BaseDraw inherits 
        from BaseView.

        You can change the BaseDraw camera with BaseDraw.SetSceneCamera().

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