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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Handles in R18

    Cinema 4D SDK
    python r19 windows
    2
    3
    658
    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.
    • ?
      A Former User
      last edited by A Former User

      Hello,
      I'm working to make my plugin compatible with R18. It will render with the Viewport Renderer (or Hardware OpenGL as it was called). I'm filtering out all items from my Viewport except for Polygons & Generators, however the handles are still being rendered. I see that the BASEDRAW_DISPLAYFILTER_HANDLES filter was added in R19. Is there a way to filter out the handles in R18?

      Here is some test code and the result...

      import c4d
      
      def main(doc):
          bd = doc.GetActiveBaseDraw()
          bd[c4d.BASEDRAW_DISPLAYFILTER_BASEGRID] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_BOUNDS] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_CAMERA] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_DEFORMER] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_GENERATOR] = True
          bd[c4d.BASEDRAW_DISPLAYFILTER_GRADIENT] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_GRID] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_GUIDELINES] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_HANDLEBANDS] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_HIGHLIGHTING] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_HIGHLIGHTING_HANDLES] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_HORIZON] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_HUD] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_HYPERNURBS] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_JOINT] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_LIGHT] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_MULTIAXIS] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_NGONLINES] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_NULL] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_OBJECTHANDLES] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_OBJECTHIGHLIGHTING] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_ONION] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_OTHER] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_PARTICLE] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_POI] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_POLYGON] = True
          bd[c4d.BASEDRAW_DISPLAYFILTER_SCENE] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_SDS] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_SDSCAGE] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_SPLINE] = False
          bd[c4d.BASEDRAW_DISPLAYFILTER_WORLDAXIS] = False
          c4d.EventAdd()
      
      if __name__=='__main__':
          main(doc)
      

      Handles.jpg

      Thank you very much!

      1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand
        last edited by

        Hi @blastframe,

        thank you for reaching out to us. This is unfortunately not supported in R18, even within the app, as demonstrated below.

        519a14d4-73cc-43a9-a52e-538242558853-image.png

        And due to R18 having left the support cycle, this will also not be fixed anymore. Your best option is to deselect the object which you do not want to display the handles for.

        Thank you for your understanding,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          Thank you for letting me know, @ferdinand !

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