• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Ruby coder needed. Custom plugin/script

Scheduled Pinned Locked Moved Developers' Forum
10 Posts 2 Posters 7 Views 2 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.
  • P Offline
    ptasznick
    last edited by 22 Jan 2023, 11:22

    Dear All,
    I'm looking for a person who can write a custom script for cash.

    I'm having problems to find certain people doing those things online.

    I need a script that takes all groups and components within a model or a selection (with all nested items), reads the material name given to that group/component and writes this name into a parameter that can be accessed with LayOut Auto-text feature. In worst case this can be written to the Instance parameter of each entity.

    Please - write me a quotation for such service.

    Thank You

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 22 Jan 2023, 12:55

      https://sketchucation.com/pluginstore?pln=TIG_ComponentDescriptor already manipulates the component's description with details about the component.
      It won't seem too hard to adjust it to do instances/groups and add the material's name ?
      Then the Layout auto-text can use the description to add into some text ?
      What other attribute were you thinking of to take this extra data ?

      TIG

      1 Reply Last reply Reply Quote 0
      • P Offline
        ptasznick
        last edited by 23 Jan 2023, 10:31

        I will check out Component Descriptor - and yes - this seems to be close to what I need.

        Only parameter that is visible to normal user and allows for labeling in Layout is the Instance parameter. It is also common for groups and components (at least the name "Instance" is the same). Every other parameter like advanced ones or user created are component only parameters and I need to label groups also. Don't want to model everything with components only.

        Basically - if I have antyhing that I want to label by name - I will write the name in component Definition parameter. Groups don't have names, and that's fine.

        I just need a tool to automatically put the Material Name in the instance parameter of each component and group. Original contents of Instance parameter can be deleted / substituted with Material Name.

        Hope this clarifies.

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by TIG 23 Jan 2023, 11:42

          If you really want the component-instance or group to have a name after the container's material then its quite simple - a few lines of code...
          I'll mock something up for you to try...

          TIG

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 23 Jan 2023, 12:26

            Do you want it to work on all instances/groups [even nested ones] or on preselected ones ?

            TIG

            1 Reply Last reply Reply Quote 0
            • P Offline
              ptasznick
              last edited by 23 Jan 2023, 14:25

              Best option is to for this to work on selected entities, with all nested components/groups inside this selection.

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 24 Jan 2023, 00:05

                OK - give me a day or two [my personal life has unexpected complications] and I'll come back to you...

                TIG

                1 Reply Last reply Reply Quote 0
                • P Offline
                  ptasznick
                  last edited by 24 Jan 2023, 09:14

                  That is most appreciated.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 26 Jan 2023, 16:15

                    Here's v1.0.0 of ContainerNameMaterial
                    Install the RBZ using the Extension Manager
                    Code is Set up by ContainerNameMaterial.rb.
                    Sets up menu item under Plugins|Extensions
                    When it's run it processes all selected containers [groups & instances] and their nested containers.
                    If the container has a material it's renamed to match.
                    Otherwise it's left unchanged.
                    One step undo-able...

                    It's not encrypted, so read the code RB file to see how it works...


                    ContainerNameMaterial.rbz

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      ptasznick
                      last edited by 27 Jan 2023, 10:11

                      Wow. Works flawlessly. Tested on different scenarios with different hierarchy and nested objects. Also - as expected - everything is 'taggable' in Layout.

                      Thank You very much.


                      works flawlessly

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

                      Advertisement