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

    dissable a group for lines

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 366 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 04/07/2014 at 03:03, xxxxxxxx wrote:

      hi
      i want to dissable a group of lines.
      in the Python documentation i found

      """ this ist a group of comments
      I want to dissable"""

      But when I place me code in the """ code """"
      everything after this doesn't work

      Question:
      How can dissable a group of lines.

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

        On 04/07/2014 at 03:17, xxxxxxxx wrote:

        For me it works (I tested it in a script).
        Also for comments the color changes, so you can check right away.

        import c4d
        from c4d import gui, utils
          
          
        def main() :
            print "start"
            """ 1 comment line """
            # another way to have one comment line
            print "end"
            
            """
            multiple comments lines 
            multiple comments lines """
            
            
            
        if __name__=='__main__':
            main()
          
        
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 04/07/2014 at 04:05, xxxxxxxx wrote:

          thanks a lot
          I dont know what is the differenc to my post, wut now it works
          ????

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

            On 04/07/2014 at 04:46, xxxxxxxx wrote:

            """ ... """ is an Expression, unlike beginning a line with #.
            It needs to be indented correctly.

            -Niklas

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