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

    Bug in Linkbox

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 257 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 22/06/2015 at 01:15, xxxxxxxx wrote:

      Hey guys, I was trying to add a link box in a plugin i was making and was having an error. Maybe its a bug, i think so.

      the code i gave was:

      ** self.GroupBegin(20001, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 2, 0, "")**
      **        self.rootLinkBaseContainer = c4d.BaseContainer()**
      **        **
      **        self.AddStaticText(0, c4d.BFH_LEFT, 0, 0, "Source Object:", 0)**
      **        self.linkBox = self.AddCustomGui(MY_LINKBOX, c4d.CUSTOMGUI_LINKBOX, "", c4d.BFH_SCALEFIT|c4d.BFV_SCALEFIT, 0, 0)**
      **        self.GroupEnd()**

      The error that is coming is:
      indentation error on self.
      I dunno why thats happening but when i commented the code for the link box, the plugin started displaying.
      Pls help me debug this.

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

        On 29/06/2015 at 04:12, xxxxxxxx wrote:

        Hi,

        I think, the error message is quite self-explanatory and I doubt it is a bug in Linkbox. Indentation seems to be messed up in your source. Unfortunately that's very hard to check from this side, because a) you only posted a snippet and b) indentation might have changed by posting into this forum.
        In order to find the error, I'd recommend to load the code into a text editor capable of highlighting Python code (pretty much every will do, Sublime Text, UltraEdit, Notepad++, ...). Then enable highlighting of whitespace, so you can differentiate spaces from tabs.

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

          On 26/08/2015 at 08:40, xxxxxxxx wrote:

          I guess, I can mark this as closed?

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