• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Slicer5

Scheduled Pinned Locked Moved Plugins
336 Posts 82 Posters 296.3k Views 81 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.
  • G Offline
    guanjin
    last edited by 20 Jan 2012, 10:39

    @tig said:

    Do you understand how to make a 'lingvo' file ?
    Here an overview...
    Find your 'locale' id, in the Ruby Console thus:
    Sketchup.get_locale.upcase
    For Chinese it'll probably be
    ' ZH-CN'
    Make a copy of the TIG-SlicerEN-US.lingvo file that is in the TIG-Slicer subfolder, within the Plugins folder.
    Name this copied file to match that, thus:
    TIG-Slicer**ZH-CN**.lingvo
    Edit that new lingvo file using a plain-text editor like Notepad++.exe.
    A lingvo file contains words or phrases; one 'set' per line.
    In the English version the original word or phrase, and its translation are the same.
    There is a special symbol separating the two parts
    ' <==>'.
    For example...
    Slicing tool**<==>**Slicing tool
    Make your translation for the word or phrase.
    Replace the right-hand version.
    For example in 'Simplified Chinese' you could use something like...
    Slicing tool**<==>**ๅˆ‡็‰‡ๅทฅๅ…ท
    Repeat your translations as desired...
    Save the lingvo file.
    When Sketchup restarts it should find this new lingvo file, and because it matches your locale it will translate any English matching words or phrases that it finds, using your locale's translations... Any words that you do not translate remain the same; so if you leave the line as
    Slicer5<==>**Slicer5**
    Your menu items etc will then say ' Slicer5' even though they will use Chinese translations for other words you might have given translations to...
    Tip: You might need to 'convert' the lingvo file to a UFT-8 encoded type, to get the Chinese characters to be correctly displayed ๐Ÿ˜• You can easily do that with Notepad++.exe.
    ๐Ÿค“

    Thank been resolved, there is a problem, slice tile can not be achieved, the previous version can, thank you!

    I come from China, is to learn

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 20 Jan 2012, 10:46

      @unknownuser said:

      Thank been resolved, there is a problem, slice tile can not be achieved, the previous version can, thank you!
      Please explain ore clearly - I don't fully understand you... ๐Ÿ˜•
      Are you getting error messages in the Ruby Console ?
      What is failing ?
      Is this after you have messed with a lingvo file ?
      Does it work if you temporarily remove the lingvo file from the subfolder ?
      Which version worked ?
      Which version fails ?
      ๐Ÿ˜•

      TIG

      1 Reply Last reply Reply Quote 0
      • G Offline
        guanjin
        last edited by 20 Jan 2012, 10:57

        @tig said:

        @unknownuser said:

        Thank been resolved, there is a problem, slice tile can not be achieved, the previous version can, thank you!
        Please explain ore clearly - I don't fully understand you... ๐Ÿ˜•
        Are you getting error messages in the Ruby Console ?
        What is failing ?
        Is this after you have messed with a lingvo file ?
        Does it work if you temporarily remove the lingvo file from the subfolder ?
        Which version worked ?
        Which version fails ?
        ๐Ÿ˜•

        Version 5.11, can not be achieved slice tile, without any prompting!

        I come from China, is to learn

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 20 Jan 2012, 11:30

          @unknownuser said:

          Version 5.11, can not be achieved slice tile, without any prompting!
          Let me try to recast what you said, as I understand it...
          Version 5.11, does not make slices, without any error messages...
          If has a toolbar and menu items, and you have a saved SKP, with just one group selected, and you run the tool... what happens ???
          Because it is working successfully for me [and many hundreds of other users] then it suggests that you have something wrong in your installation.
          Please try reinstalling everything.
          Ensure that there are no copies of the files that should be in the tool's subfolder inside the Plugins folder by mistake.
          There should be two files in the Plugins folder
          Slicer.rb deBabelizer.rb
          and a subfolder named
          TIG-Slicer
          containing
          TIG-Slicer.rb
          and the 8 PNG image files for the toolbar buttons
          and the 6 lingvo files...
          ๐Ÿ˜•

          TIG

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 20 Jan 2012, 12:27

            I've noticed an error with the 'Portuguese' lingvo file that was recently supplied with v5.11
            It's incorrectly named 'PO' and it contained no translations anyway ! ๐Ÿ˜ฎ
            Here's the correct 'PT' version.TIG-SlicerPT-lingvo.zipExtract it from the zip.
            If you want Portuguese translations, please remove the incorrect 'PO' version and add this correct 'PT' one to the tool's subfolder. If your 'locale' is not 'PT' you can always change that part of the name to suit...

            TIG

            1 Reply Last reply Reply Quote 0
            • G Offline
              guanjin
              last edited by 20 Jan 2012, 18:30

              @tig said:

              I've noticed an error with the 'Portuguese' lingvo file that was recently supplied with v5.11
              It's incorrectly named 'PO' and it contained no translations anyway ! ๐Ÿ˜ฎ
              Here's the correct 'PT' version.[attachment=0:2ob4u420]<!-- ia0 -->TIG-SlicerPT-lingvo.zip<!-- ia0 -->[/attachment:2ob4u420]Extract it from the zip.
              If you want Portuguese translations, please remove the incorrect 'PO' version and add this correct 'PT' one to the tool's subfolder. If your 'locale' is not 'PT' you can always change that part of the name to suit...

              I may not know the expression, films can not be razed to the ground piece, thank you

              I come from China, is to learn

              1 Reply Last reply Reply Quote 0
              • G Offline
                guanjin
                last edited by 20 Jan 2012, 18:52

                @tig said:

                I've noticed an error with the 'Portuguese' lingvo file that was recently supplied with v5.11
                It's incorrectly named 'PO' and it contained no translations anyway ! ๐Ÿ˜ฎ
                Here's the correct 'PT' version.[attachment=1:zqav1736]<!-- ia1 -->TIG-SlicerPT-lingvo.zip<!-- ia1 -->[/attachment:zqav1736]Extract it from the zip.
                If you want Portuguese translations, please remove the incorrect 'PO' version and add this correct 'PT' one to the tool's subfolder. If your 'locale' is not 'PT' you can always change that part of the name to suit...

                Translated into Chinese, it can not achieve the flattening function, the following documents attached to the Chinese language, thank you! !
                [attachment=0:zqav1736]<!-- ia0 -->TIG-SlicerZH-CN.zip<!-- ia0 -->[/attachment:zqav1736]


                TIG-SlicerZH-CN.zip

                I come from China, is to learn

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 20 Jan 2012, 21:08

                  OK.
                  What you are saying is that when using a Chinese lingvo file the 'Flattening' function fails.
                  If you change the translation for the 'Flattening' parts of the lingvo back to the original file's text, does it then work ?
                  If so, then it suggests that some 'characters' in your translation are not working properly.
                  Did you use the 'UFT-8' option when saving the Chinese lingvo file ?
                  The translate strings go inside " " in the code, so you can't include any " in the translation, as it breaks the way the code reads it in...
                  Can you try alternative 'wording' ?
                  ๐Ÿ˜•

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    guanjin
                    last edited by 21 Jan 2012, 07:12

                    @guanjin said:

                    @tig said:

                    I've noticed an error with the 'Portuguese' lingvo file that was recently supplied with v5.11
                    It's incorrectly named 'PO' and it contained no translations anyway ! ๐Ÿ˜ฎ
                    Here's the correct 'PT' version.[attachment=1:r7efhnet]<!-- ia1 -->TIG-SlicerPT-lingvo.zip<!-- ia1 -->[/attachment:r7efhnet]Extract it from the zip.
                    If you want Portuguese translations, please remove the incorrect 'PO' version and add this correct 'PT' one to the tool's subfolder. If your 'locale' is not 'PT' you can always change that part of the name to suit...

                    Translated into Chinese, it can not achieve the flattening function, the following documents attached to the Chinese language, thank you! !
                    [attachment=0:r7efhnet]<!-- ia0 -->TIG-SlicerZH-CN.zip<!-- ia0 -->[/attachment:r7efhnet]

                    I am really stupid, I did not expect this problem, thank you! ๐Ÿ˜’

                    I come from China, is to learn

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      guanjin
                      last edited by 21 Jan 2012, 07:14

                      @guanjin said:

                      @tig said:

                      I've noticed an error with the 'Portuguese' lingvo file that was recently supplied with v5.11
                      It's incorrectly named 'PO' and it contained no translations anyway ! ๐Ÿ˜ฎ
                      Here's the correct 'PT' version.[attachment=1:165j53cw]<!-- ia1 -->TIG-SlicerPT-lingvo.zip<!-- ia1 -->[/attachment:165j53cw]Extract it from the zip.
                      If you want Portuguese translations, please remove the incorrect 'PO' version and add this correct 'PT' one to the tool's subfolder. If your 'locale' is not 'PT' you can always change that part of the name to suit...

                      Translated into Chinese, it can not achieve the flattening function, the following documents attached to the Chinese language, thank you! !
                      Delete the wrong file, sorry๏ผ

                      I come from China, is to learn

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        guanjin
                        last edited by 21 Jan 2012, 07:32

                        @tig said:

                        OK.
                        What you are saying is that when using a Chinese lingvo file the 'Flattening' function fails.
                        If you change the translation for the 'Flattening' parts of the lingvo back to the original file's text, does it then work ?
                        If so, then it suggests that some 'characters' in your translation are not working properly.
                        Did you use the 'UFT-8' option when saving the Chinese lingvo file ?
                        The translate strings go inside " " in the code, so you can't include any " in the translation, as it breaks the way the code reads it in...
                        Can you try alternative 'wording' ?
                        ๐Ÿ˜•

                        Thank you TIG, problem solved, thank you for your guidance! Thank you! !

                        I come from China, is to learn

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          guanjin
                          last edited by 21 Jan 2012, 08:32

                          Hello TIG: plug-in menu bar, the ability to fold? Thank you
                          QQๆˆชๅ›พ20120120162611.jpg

                          I come from China, is to learn

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 21 Jan 2012, 11:32

                            @guanjin said:

                            Hello TIG: plug-in menu bar, the ability to fold? Thank you
                            [attachment=0:2u7rviwa]<!-- ia0 -->QQๆˆชๅ›พ20120120162611.jpg<!-- ia0 -->[/attachment:2u7rviwa]
                            I assume by 'fold' you mean 'combine into a single submenu'. ๐Ÿ˜• [Do you use Google Translate?]
                            To make that you'll need to recode the menu making part of the script.
                            Here is how to do it.
                            the original code [around line#669] looks like this:

                              UI.menu("Plugins").add_item(cmd)
                              UI.menu("Plugins").add_item(cmds)
                              UI.menu("Plugins").add_item(cmda)
                              UI.menu("Plugins").add_item(cmdx)
                            

                            This is it recoded with an extra line to make the submenu within the 'Plugins' menu; and the other four lines adjusted to add their commands into that rather than directly into the 'Plugins' menu:

                              submenu=UI.menu("Plugins").add_submenu(S5+"...")
                              submenu.add_item(cmd)
                              submenu.add_item(cmds)
                              submenu.add_item(cmda)
                              submenu.add_item(cmdx)
                            

                            The 'S5' constant is the deBabelized string for 'Slicer5', used as the name for the submenu plus '...'.
                            If users would prefer this method I could incorporate it into a new release.
                            So feedback please...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • G Offline
                              guanjin
                              last edited by 22 Jan 2012, 03:14

                              @tig said:

                              @guanjin said:

                              Hello TIG: plug-in menu bar, the ability to fold? Thank you
                              [attachment=0:7wcsfm32]<!-- ia0 -->QQๆˆชๅ›พ20120120162611.jpg<!-- ia0 -->[/attachment:7wcsfm32]
                              I assume by 'fold' you mean 'combine into a single submenu'. ๐Ÿ˜• [Do you use Google Translate?]
                              To make that you'll need to recode the menu making part of the script.
                              Here is how to do it.
                              the original code [around line#669] looks like this:

                                UI.menu("Plugins").add_item(cmd)
                              >   UI.menu("Plugins").add_item(cmds)
                              >   UI.menu("Plugins").add_item(cmda)
                              >   UI.menu("Plugins").add_item(cmdx)
                              

                              This is it recoded with an extra line to make the submenu within the 'Plugins' menu; and the other four lines adjusted to add their commands into that rather than directly into the 'Plugins' menu:

                                submenu=UI.menu("Plugins").add_submenu(S5+"...")
                              >   submenu.add_item(cmd)
                              >   submenu.add_item(cmds)
                              >   submenu.add_item(cmda)
                              >   submenu.add_item(cmdx)
                              

                              The 'S5' 'constant is the deBabelized string for 'Slicer5', used as the name for the submenu plus '...'.

                              If users would prefer this method I could incorporate it into a new release.
                              So feedback please...

                              This can shorten the length of plug-ins drop-down menu!

                              I come from China, is to learn

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                guanjin
                                last edited by 22 Jan 2012, 10:59

                                Thank you TIG
                                QQๆˆชๅ›พ20120121184810.jpg
                                ๆœชๅ‘ฝๅ.jpg

                                I come from China, is to learn

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  guanjin
                                  last edited by 22 Jan 2012, 11:12

                                  Want to smooth the edges the better!!
                                  ๆœชๅ‘ฝๅ.jpg

                                  I come from China, is to learn

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 22 Jan 2012, 11:21

                                    The more facets that the sliced object has the smoother the edges of the slices...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 22 Jan 2012, 22:32

                                      Guanjin
                                      Could you post your Chinese lingvo file [zipped] for other fellow users to benefit from - it's only fair - the rest of the tool is freely shared... ๐Ÿ˜•

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 22 Jan 2012, 22:40

                                        Here's v5.12 http://forums.sketchucation.com/viewtopic.php?p=374969#p374969
                                        Extra traps added for 'non-instances' within slice-collections [e.g. when slotting after editing].
                                        Code CONSTANTS added for optional menu-location/single-submenu.
                                        The lingvo files are now all UFT-8 encoded, to avoid problems when copying.
                                        Typos in the FR lingvo file corrected, the correct PT Portuguese lingvo is now included.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • G Offline
                                          guanjin
                                          last edited by 23 Jan 2012, 06:06

                                          Yes, I posted on there?

                                          I come from China, is to learn

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 16
                                          • 17
                                          • 5 / 17
                                          5 / 17
                                          • First post
                                            87/336
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement