Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Porting plugin to R20, disable style guide?

    Cinema 4D SDK
    2
    4
    889
    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.
    • F
      FilipM
      last edited by FilipM

      Hi!
      I am finally taking the plunge and moving my development to R20. To get started I am porting an old plugin to R20. I have successfully compiled the sdk examples for R20. However, when compiling my own plugin, I get errors related to the style guide, e.g.:

      error : Style guide requires whitespace before =.

      The "projectdefinition.txt" file for my plugin looks as follows:

      // Supported platforms - can be [Win64;OSX]
      Platform=Win64;OSX
      
      // Type of project - can be [Lib;DLL;App]
      Type=DLL
      
      // API dependencies
      APIS=cinema.framework;mesh_misc.framework;math.framework;crypt.framework;python.framework;core.framework;
      
      // C4D component
      C4D=true
      
      stylecheck=false
      //stylecheck.level=0 // must be set after c4d=true
      stylecheck.enum-registration=false
      stylecheck.enum-class=false
      
      // Custom ID
      ModuleId=com.filipmalmberg.solidchamfer
      
      

      I thought the setting stylecheck=false would disable the stylecheck completely? Am I doing something wrong?

      Best regards
      /Filip

      1 Reply Last reply Reply Quote 0
      • S
        s_bach
        last edited by s_bach

        Hello,

        using

        stylecheck=false
        

        or

        stylecheck.level=0
        

        disables the style check. But then you write:

        stylecheck.enum-registration=false
        stylecheck.enum-class=false
        

        which apparently turns the stylecheck on again. So if you remove these two lines, style check should be disabled.

        You can also turn errors into warnings using stylecheck.aswarnings=true.

        best wishes,
        Sebastian

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • F
          FilipM
          last edited by

          Thanks Sebastian, I will try that!

          /Filip

          1 Reply Last reply Reply Quote 0
          • F
            FilipM
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post