Bug in Linkbox

  • 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.

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


    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.

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

    I guess, I can mark this as closed?

Log in to reply