sketchucation logo sketchucation
    • Login
    1. Home
    2. kherv
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    kherv

    @kherv

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

    kherv Unfollow Follow
    registered-users

    Latest posts made by kherv

    • One Submenu for many plugins

      Hi,

      I Need some help.
      I wish to create the same submenu for some plugins.

      AS exemple:

      Plugin A
      Plugin B
      Plugin C

      For something like that:

      [pre:f9u5ni7z]Plugins
      -> Sub1
      -> sub11
      -> Plugin A
      -> plugin B
      -> Function Y
      -> Function Z
      -> sub12
      -> plugin C[/pre:f9u5ni7z]

      I tried something like that:

      plugin A:
      sub_1 = UI.menu( 'plugin' ).add_submenu( 'Sub1' )
      sub_11 = sub_1.add_submenu( 'sub11')
      sub_11.add_item("plugin A") {A}

      plugin B:
      sub_1 = UI.menu( 'plugin' ).add_submenu( 'Sub1' )
      sub_11 = sub_1.add_submenu( 'sub11')
      Sub_Plug = sub_11.add_submenu( 'plugin B')
      Sub_Plug.add_item("Function Y") {Y}
      Sub_Plug.add_item("Function Z") {Z}

      plugin ๐Ÿ˜„
      sub_1 = UI.menu( 'plugin' ).add_submenu( 'Sub 1' )
      sub_12 = sub_1.add_submenu( 'sub12')
      sub_11.add_item("plugin C") {C}

      And it gives:
      [pre:f9u5ni7z]Plugins
      -> Sub1
      -> sub11
      -> plugin A
      -> Sub1
      -> sub11
      -> plugin B
      -> Function Y
      -> Function Z
      -> Sub1
      -> sub12
      -> plugin C[/pre:f9u5ni7z]

      How can I do to fix this ?

      Thank you for the help and sorry for my bad english.
      Have a good day.

      posted in Developers' Forum
      K
      kherv