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

    Windows versus Apple

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 304 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 09/10/2013 at 01:51, xxxxxxxx wrote:

      When developing plugins I know the main difference is file naming and the use of 'escape' characters.
      Are there any other issue I should be aware of?

      I get a strange error when using the plugin on a Mac, no issue on Windows.
      E.g. TypeError: Sized() takes exactly 3 arguments (1 given)
      But the code seems alright and no error in Windows:
          def Sized(self, w, h) :      # Windows was resized. 
              # Set flag to disable rendering during resizing
              self.redraw = True

      E.g. AttributeError: 'Area' object has no attribute 'redraw'
      But the code seems alright and no error in Windows:
              if (not self.redraw) :          #resize message, do not render

      One thing I notice when looking at Niklas code is an additional r when commenting.
      r""", is that something Mac specific?

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

        On 09/10/2013 at 05:31, xxxxxxxx wrote:

        The r means that the following string is a raw string, nothing os specific about that. I think he 
        is doing it because he is using these docstrings to feed sphinx and he wants to make sure that 
        they are processed correctly / he does not have to to double type every backlash.

        Cannot really say anything about the mac problem , but sounds odd :).

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

          On 09/10/2013 at 06:15, xxxxxxxx wrote:

          Ok, thanks for your thoughts.
          The thing is, I do not a Mac myself, so testing / debugging is difficult.
          I'll start with outputting more debug lines- information.

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