sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Name Group on Creation

    Scheduled Pinned Locked Moved Plugins
    49 Posts 20 Posters 29.8k Views 20 Watching
    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.
    • J Offline
      Jim
      last edited by

      @plot-paris said:

      quite handy.
      but sometimes I dont want to name a group (for example if it is just temporary). I do know nothing about programming. but is it possible to write a ruby, that lets the cursor appear within the group's name in the outliner after creation instead of popping up a new window?

      that would be the perfect solution for me...

      Just tapping the Enter key will make the dialog go away and name the group "Group". There is no way to select the group in the outliner for editing. (At least from Ruby.)

      Hi

      1 Reply Last reply Reply Quote 0
      • JClementsJ Offline
        JClements
        last edited by

        Thanks Jim, I changed my shortcut for grouping to your script.

        Question: Is it possible to have the Input Box "remember" its last position? Sometimes the input boxes can coverup the area you are working on and I want to move them out of the way.

        John | Illustrator | Beaverton, Oregon

        1 Reply Last reply Reply Quote 0
        • A Offline
          a4chitect
          last edited by

          it should ideally prompt in the VCB only 😄

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            @jclements said:

            Thanks Jim, I changed my shortcut for grouping to your script.

            Question: Is it possible to have the Input Box "remember" its last position? Sometimes the input boxes can coverup the area you are working on and I want to move them out of the way.

            Yes, but only if I switch it to use a WebDialog. Which I will do a little later just for kicks.

            Hi

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              @a4chitect said:

              it should ideally prompt in the VCB only 😄

              I quite like this idea - no dialog at all. I'll try this too.

              EDIT: Unfortunately, this can't be done. Anyone guess why?

              Hi

              1 Reply Last reply Reply Quote 0
              • R Offline
                RickW
                last edited by

                Going strictly on (sometimes faulty) memory, I think VCB input is only available to tools.

                RickW
                [www.smustard.com](http://www.smustard.com)

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  @rickw said:

                  Going strictly on (sometimes faulty) memory, I think VCB input is only available to tools.

                  True, and also any key shortcut you hit while typing the name will exit the Tool anyway.

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    a4chitect
                    last edited by

                    sorry for not checking myself first... thanks for looking into it

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      AlexMozg
                      last edited by

                      Jim, thank you for a wonderful idea.
                      I edited your script and added list of the before entered values for a substitution
                      and also checking for an empty selection.
                      Jim, once again thank you.


                      Jim, I regret because published this script here.
                      I think that it is not nice for my part.

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        j_forrester
                        last edited by

                        Can this be used commercially?

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jim
                          last edited by

                          @j_forrester said:

                          Can this be used commercially?

                          I sent you a PM.

                          Hi

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            bianhai
                            last edited by

                            Thanks!Jim! 👍

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              watkins
                              last edited by

                              Dear Jim,

                              Could you possibly modify your script to include a toggle On/OFF icon so that the box can be made to automatically pop up when a group is created. As it stands, leaving the Entity Info box open on the screen is more convenient. The box automatically popping up would remind the user to name the group, making Outliner easier to use. The toggle OFF option would be useful for those not needing the detail.

                              Kind regards,
                              Bob

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                Jim
                                last edited by

                                @alexmozg said:

                                Jim, thank you for a wonderful idea.
                                I edited your script and added list of the before entered values for a substitution
                                and also checking for an empty selection.
                                Jim, once again thank you.


                                Jim, I regret because published this script here.
                                I think that it is not nice for my part.

                                Thanks, I've included your modified version in the first post of this thread.

                                Hi

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  watkins
                                  last edited by

                                  Dear Jim,

                                  I note that when a named group is deleted it disappears from the list in Outliner, but not from the list in makeNamedGroup+.rb.

                                  Is there any way to update/purge the list when groups are deleted?

                                  Kind regards,

                                  Bob

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    Jim
                                    last edited by

                                    Hi Bob,

                                    I'll have a look at it over the weekend, as well as your earlier message.

                                    Hi

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      watkins
                                      last edited by

                                      Dear Jim,

                                      As always, many thanks.

                                      By the way, the polymer base is in manufacture, and so is the load spreader. I am currently working on the details of the drive unit.

                                      Regards,
                                      Bob

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        Jim
                                        last edited by

                                        @watkins said:

                                        Dear Jim,

                                        Could you possibly modify your script to include a toggle On/OFF icon so that the box can be made to automatically pop up when a group is created. As it stands, leaving the Entity Info box open on the screen is more convenient. The box automatically popping up would remind the user to name the group, making Outliner easier to use. The toggle OFF option would be useful for those not needing the detail.

                                        Kind regards,
                                        Bob

                                        Isn't this how it works? The dialog pops-up if you use the Make Group option in the Plugins menu.

                                        Hi

                                        1 Reply Last reply Reply Quote 0
                                        • W Offline
                                          watkins
                                          last edited by

                                          Dear Jim,

                                          Yes, you are right. I missed the right-click context menu. Apologies for wasting your time.

                                          Thanks,
                                          Bob

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            Jim
                                            last edited by

                                            Good news - I found a way to detect when a Group is created. This is cool because now I can pop-up a dialog when the built-in Make Group is used - so there's no need for a separate menu item at all. I'll update when I get through it.

                                            Also, the option can be turned on and off using the Extensions (in Preferences) dialog, or a Toolbar button. Enabled you get a Name: prompt, disabled you get the normal Make Group.

                                            Hi

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement