Navigation

    • Register
    • Login
    • Search
    1. Home
    2. robkom
    R

    robkom

    @robkom

    0
    Reputation
    5
    Posts
    5
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    robkom Follow

    Best posts made by robkom

    This user does not have any upvoted posts yet.

    Latest posts made by robkom

    RE: SplineCustomGui settings issue

    @ferdinand sorry for my plain statement.

    It's not showing the description inside the dialog (I dont get any erros in the console) but instead a blank dialog. I now added Obase and the group ID_OBJECTPROPERTIES but it didn't help. How do I initialize my Tsplineobj parameters/which parameters do you mean? The attribute manager can deal with my description and I dont get any errors. splinegui.PNG

    Thank you for your time
    -robkom

    posted in Cinema 4D SDK •
    RE: SplineCustomGui settings issue

    Thank you @ferdinand,

    sorry for interrupting you again but it's not working with my own NodeData plugin. I managed to create an ObjectData plugin however I'm not able to show the description that is allocated to my plugin. It works perfectly fine when I use the preferences node (like in your example) instead of my own ObjectData plugin. Here is my minimalistic implementation:

    Plugin registration:

    plugins.RegisterObjectPlugin(
            id=1058006,
            info=c4d.PLUGINFLAG_HIDEPLUGINMENU,
            str="tsplineobj",
            icon=load_icon('res/icon.tif'),
            g=tspline.Tspline,
            description="tsplineobj"
        )
    

    Tspline tag:

    class Tspline(c4d.plugins.ObjectData):
    
        def Init(self, node):
            return True
    

    The custom GUI:

        def CreateLayout(self):
            self.GroupBegin(id=1100, flags=c4d.BFH_FIT)
            bc = c4d.BaseContainer()
            bc[c4d.DESCRIPTION_OBJECTSNOTINDOC] = True
            spline_gui = self.AddCustomGui(
                id=423424,
                pluginid=c4d.CUSTOMGUI_DESCRIPTION,
                name="Spline",
                flags=c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT,
                minw=600,
                minh=200,
                customdata=bc
            )
            spline_obj = c4d.BaseObject(1058006)
            spline_gui.SetObject(spline_obj)
            self.GroupEnd()
            return True
    

    the res file:

    CONTAINER tsplineobj
    {
        NAME tsplineobj;
    
        GROUP
        {
            SPLINE MY_SPLINE { }
            STATICTEXT TEST
    		{
    			SCALE_H;
    		}
        }
    }
    

    Is there anything I missed to implement?

    Thank you for your time
    -robkom

    posted in Cinema 4D SDK •
    RE: SplineCustomGui settings issue

    @ferdinand thank you.
    How can I implement my node with the description? I want to show this GUI when I click on a button in my TagPlugin GUI. c4d.gui.DescriptionCustomGui takes an BaseObject as a parameter. Do I need to create another plugin for this description or how can I pass my description to it?

    Thank you again
    -robkom

    posted in Cinema 4D SDK •
    RE: SplineCustomGui settings issue

    @aimidi thank you for this information. The screenshot from the SDK which describes the GeDialog GUI SplineCustomGui is actually a Description GUI SplineCustomGui? Regardless of the Description GUI do you know if it is possible to get those settings for GeDialog GUI as well? The SDK states that I can use the container to activate those settings (this didn't work).

    Greetings
    -robkom

    posted in Cinema 4D SDK •
    SplineCustomGui settings issue

    Dear Community,

    I am displaying a Spline using SplineCustomGui. I am able to display the spline but the custom attributes are missing. Is there a way to do this without a .res file or can someone tell my why it doesn't work?

    Several people already posted (or this thread) that the provided Spline Settings don't work.

    My spline code (called in the CreateLayout method):

    bc = c4d.BaseContainer()
    bc[c4d.SPLINECONTROL_GRID_H] = True
    bc[c4d.SPLINECONTROL_GRID_V] = True
    bc[c4d.SPLINECONTROL_VALUE_EDIT_H] = True
    bc[c4d.SPLINECONTROL_VALUE_EDIT_V] = True
    bc[c4d.SPLINECONTROL_X_MIN] = 0
    bc[c4d.SPLINECONTROL_X_MAX] = 1
    bc[c4d.SPLINECONTROL_X_STEPS] = 0.1
    bc[c4d.SPLINECONTROL_Y_MIN] = 0
    bc[c4d.SPLINECONTROL_Y_MAX] = 1
    bc[c4d.SPLINECONTROL_Y_STEPS] = 0.1
    bc[c4d.SPLINECONTROL_NO_FLOATING_WINDOW] = False
    bc[c4d.SPLINECONTROL_NO_PRESETS] = False
    spline_gui = self.AddCustomGui(
        id=spline_id,
        pluginid=c4d.CUSTOMGUI_SPLINE,
        name="Spline",
        flags=c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT,
        minw=600,
        minh=200,
        customdata=bc
    )
    

    My current spline looks like this:
    84869d98-e82f-46d0-81b1-343213791fe6-image.png

    This is what it should look like:
    4a17bcb4-7f7e-4f74-b1f1-41b8c8cb5302-image.png

    Am I doing this wrong? I open the dialog in a plugin but it doesn't work in a script as well.

    Thanks for your help.
    -robkom

    posted in Cinema 4D SDK •