sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] UVEditor 0.30

    已排程 已置頂 已鎖定 已移動 Plugins
    51 貼文 28 Posters 22.0k 瀏覽 28 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • K 離線
      kaas
      最後由 編輯

      @pixero said:

      This is what I get on Windows 8 with Internet Explorer 11:

      dlg = UI;;WebDialog.new()
      > dlg.show_modal do
      > dlg.execute_script('document.body.innerText=navigator.userAgent;')
      > end
      > true
      

      And a empty window appears.

      Same here on Win7 IE11

      1 條回覆 最後回覆 回覆 引用 0
      • D 離線
        driven
        最後由 編輯

        @PC folk,

        looking at the code it is Windows friendly, but does have a line in the javascript

        //Called after DOM inititialised. Not called under IE<9 since DOMContentLoaded not supported
        

        so that may be your issue...

        post your SU 'used' IE version if you shooting blanks...

        if unsure what version SU uses, paste this into 'Ruby Console'

        dlg = UI;;WebDialog.new()
        dlg.show_modal do
        dlg.execute_script('document.body.innerText=navigator.userAgent;')
        end
        

        then copy/paste the [highlight=#fff:1j1tkcft]EDIT: text in the WebDialog[/highlight:1j1tkcft]back into a reply...
        looks like this on my mac

        mine [on mac] contains this
        @unknownuser said:

        Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) SketchUp/14.0 (Mac; Safari)

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 條回覆 最後回覆 回覆 引用 0
        • D 離線
          driven
          最後由 編輯

          it does look like browser version issue,

          also I edited my earlier post, 3 above...
          to show which bit I copy pasted back...

          john

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 條回覆 最後回覆 回覆 引用 0
          • M 離線
            Marginal
            最後由 編輯

            I've edited the first post to clarify system requirements, namely:
            SketchUp 8 or later. MacOS 10.5 or later, or Windows XP or later with IE 9 or later.

            And to upload a new version:

            • Fix for texture not appearing in UV Editor window on Windows.
            • UV Editor window stays on top.
              Please let me know if you're still having trouble getting started.

            @jeff hammond said:

            it seems like it would take a really long time to edit the uvs so all the texture lines match up in this example.. but again, i'm probably overlooking a scenario where it's useful or not as complicated.
            I'd envisaged it being useful for tweaking the position of textures that have already been projected.

            But I'm starting to think that to be truly useful it's going to have to support a range of unwrapping and projection tools. (I looked at ThruPaint and, as far as I can tell, it doesn't offer these).

            1 條回覆 最後回覆 回覆 引用 0
            • jolranJ 離線
              jolran
              最後由 編輯

              is the body ready ? Try with a button..

              html = <<-HTML
              		<!DOCTYPE html>
              		<html>
              		<body>
              			<input type='button' onclick='alert(document.body.innerText=navigator.userAgent);'>
              		</body>
              		</html>
              	HTML
              	dlg = UI;;WebDialog.new()
              	dlg.set_html(html)
              	dlg.show_modal 
              
              1 條回覆 最後回覆 回覆 引用 0
              • PixeroP 離線
                Pixero
                最後由 編輯

                Installed v0.2 still nothing visible with Windows 7 and IE9.

                1 條回覆 最後回覆 回覆 引用 0
                • K 離線
                  kaas
                  最後由 編輯

                  @pixero said:

                  Installed v0.2 still nothing visible with Windows 7 and IE9.

                  You are sure you are using v0.2? I had to remove v0.1 first before v0.2 was being used.

                  1 條回覆 最後回覆 回覆 引用 0
                  • jolranJ 離線
                    jolran
                    最後由 編輯

                    Hi. Get an "undefined" JavaScript error on line 636.

                    I see in the JS code "ctx.drawImage" is being called. BUT I can't see it has been assigned anywhere..

                    1 條回覆 最後回覆 回覆 引用 0
                    • PixeroP 離線
                      Pixero
                      最後由 編輯

                      @kaas said:

                      @pixero said:

                      Installed v0.2 still nothing visible with Windows 7 and IE9.

                      You are sure you are using v0.2? I had to remove v0.1 first before v0.2 was being used.

                      I uninstalled and reinstalled v0.2 but nothing is visible in the UV editor.
                      SketchUp 2014, Windows 7 and IE9.

                      1 條回覆 最後回覆 回覆 引用 0
                      • K 離線
                        kaas
                        最後由 編輯

                        @marginal said:

                        And to upload a new version:

                        • Fix for texture not appearing in UV Editor window on Windows.
                        • UV Editor window stays on top.
                          Please let me know if you're still having trouble getting started.

                        Texture appears in v0.20 but I cant select the move button. Win7 32bits Su2014 , IE 11

                        edit: Still empty window with v0.20 on Win7 64bits Su2014 , IE 11

                        1 條回覆 最後回覆 回覆 引用 0
                        • K 離線
                          kaas
                          最後由 編輯

                          @pixero said:

                          I uninstalled and reinstalled v0.2 but nothing is visible in the UV editor. SketchUp 2014, Windows 7 and IE9.

                          I edited my post above. For v0.2:
                          On my win7 32bits SU2014 and IE11 the contents are visible but I can't select the move tool.
                          On my win7 64bits SU2014 and IE11 the contents are not visible.

                          1 條回覆 最後回覆 回覆 引用 0
                          • jolranJ 離線
                            jolran
                            最後由 編輯

                            @unknownuser said:

                            ctx.drawImage

                            Doh! It's a HTML Canvas function call.. I prefer SVG 😉

                            Anyway. Spits out an error at initialization..

                            Edit: I can't dig through all your code, but could it be that the "imgresource" needed for the drawImage functioncall is somehow not getting through ?

                            The dialog is showing up fine without any errors. But when applying a Texture onto a face(any texture from materials palette) and reentering the dialog the JS error occours and persists. No texture is shown on the canvas.

                            1 條回覆 最後回覆 回覆 引用 0
                            • M 離線
                              Marginal
                              最後由 編輯

                              I've updated the initial post with version 0.30 which implements Rotate, Scale, exporting UV coordinates, and Project from View. Plus some optimisations and fixes.

                              Hopefully I've fixed the issues that many people are having on Windows. If you still don't see anything appear in the "UV Editor" window when you select faces, please look in the Ruby Console window: This version prints out the URL of the texture file that it's sending to the UV Editor window. Please let me know if you don't see this, or if it is incorrect. (If it is correct you should be able to copy and paste it into IE's address bar and have IE display the texture file).

                              Thanks to Aerilius for the code review. I don't have PM privileges so I'll answer here. I've addressed most of your comments, except the following:

                              • I can't use Point3d's built-in rounding when comparing coordinates - it's way too coarse for UV co-ordinates which have values typically in the range 0->1.
                              • I have to provide my own version of basename because I need to ensure that the texture file is present in the filesystem and not just embedded in the SketchUp model. And it's possible for the SketchUp model to contain embedded textures with Mac-style pathnames on a PC, and vice versa.
                              1 條回覆 最後回覆 回覆 引用 0
                              • S 離線
                                SquidCap
                                最後由 編輯

                                SU2014, Win7 32bit and IE11 (probably applies to all SU versions and OS versions..)

                                Empty screen, nothing on Ruby console. That is if you are using default Sketchup textures. Import your own and it works.

                                No one should use SU internal textures anyway, they have a habit of mysteriously duplicating themselves (and causing all kinds of havoc with various game engines, specially if the engine is limited to powers of two resolutions, for ex gMotor2...With SU internal textures i've ended up with 2000 duplicates on 2000 tri-count object..) So get in habit of not using them ever, not even as placeholders. I believe there is a way to export all SU textures but that's another topic.

                                Took me a while to figure this out. Hope it helps

                                1 條回覆 最後回覆 回覆 引用 0
                                • N 離線
                                  nabil2k6
                                  最後由 編輯

                                  USEFUL AND VERY INTERSTING

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • greenskpG 離線
                                    greenskp
                                    最後由 編輯

                                    Works great but a bit confusing see vertex and edges because the image texture repeats a lot and the uv is not highlighted.

                                    Thanks!

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • charly2008C 離線
                                      charly2008
                                      最後由 編輯

                                      Hi,

                                      With internet explorer 10 I get this message.


                                      2014-05-13_140930.jpg

                                      He who makes no mistakes, makes nothing

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • M 離線
                                        Marginal
                                        最後由 編輯

                                        @squidcap said:

                                        Empty screen, nothing on Ruby console. That is if you are using default Sketchup textures. Import your own and it works.
                                        ...
                                        Took me a while to figure this out. Hope it helps
                                        Thanks. I can reproduce the problem with default textures in a model that's never been saved. Will be fixed in the next release.

                                        @greenskp said:

                                        Works great but a bit confusing see vertex and edges because the image texture repeats a lot and the uv is not highlighted.
                                        I agree usability isn't as good as I'd like.
                                        You can turn on "Hidden Geometry" to view the UVs of just Faces you're interested in. Or am I misunderstanding your issue?

                                        @charly2008 said:

                                        With internet explorer 10 I get this message.
                                        I can't reproduce this on Sketchup 8, Windows 7 64bit, IE10 (which I think is your setup). And the error message is useless. Does this occur with all models that you've tried, or just sometimes?

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • D 離線
                                          dtrarch
                                          最後由 編輯

                                          Marginal
                                          FYI
                                          Selected UV shows up in the view but none of the tools work.
                                          Firefox default
                                          IE 11 installed

                                          dtr

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • 8 離線
                                            8anasis
                                            最後由 編輯

                                            Great job!but i want to see this tools working i take a empty window like the other guys
                                            "maybe my dream come true the uv editing and unwraping from bleder to SU"
                                            I pay for unwraping and UVediting tool for SU

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement