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

    WYSIWYG for webdialogs.

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 4 Posters 378 Views 4 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.
    • jolranJ Offline
      jolran
      last edited by

      Hi. Im new here so hello to everyone!

      I have been trying to learn ruby last couple of weeks, and is on the "newbie level" of making an icon and call
      for webdialog OK in SU.
      It is kind of daunting to try to learn 3 languages(Ruby, HTML and Jsript) just to make a dialog.

      My question is: Is anyone using WYSIWYG editors for plunking out html code?

      It seems an easier approach to lay out the dialog visually. I realise one have to learn html somewhat but was thinking of shortcutting it a just littl,e and focus more on learning Javascript for callbacks to SU.

      Have been trying Webbuilder 7. http://www.wysiwygwebbuilder.com/download.html

      But a little consearned about the code generated. Its gives nice results visually and fast.
      I cant really say if I'm waisting my time on this one, and that it will not work when
      I am going to communicate with my dialog to SU.

      Any advice would be nice.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        hi,
        I wouldn't buy a wysisyg editor just for WebDialogs, [there are lots of open source ones out there]

        if you use RubyCodeEditor.rb you can use a simple WebDialog code snippet, add simple html, inline css, inline js and run in directly in SU, if you make changes you just reload the file to see the difference... wysiwyg but inside SU.

        also in the reference section of RCEditor there's a link to Martin Rhineharts 'Edges to Rubies' tutorials which has html/js for SU chapters...

        here's a link, if you want to check it out first.

        http://www.martinrinehart.com/models/tutorial/tutorial_toc.html

        john

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

        1 Reply Last reply Reply Quote 0
        • jolranJ Offline
          jolran
          last edited by

          @unknownuser said:

          I wouldn't buy a wysisyg editor just for WebDialogs, [there are lots of open source ones out there

          Webbuild.7 is only 45 $. Affordable if I get "usable" results, wich acctually was the main question. Ive tried some other WYSIWYG editors and liked this
          one the best cause of simplicity.

          I am going to have a look at working with ruby code editor and HTML files.
          Very good advice there, thanks! πŸ‘
          I'm using it already but did not think of using it in that way.
          Had some crashes in SU. Still using ver 7.1. But thats another topic...

          I have gone through Martins R's tutorials. Funny guy. Very good tutorials though. I will go through them again when I have finished reading "Javascript in 24 hours" πŸ˜„

          Thanks for the respond.

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            I never trust WYSIWYG editors - they often don't produce efficient or clean code. Often it doesn't work well across platforms.
            And due to the nature of WebDialogs where you need to communicate with SketchUp you most likely need to have knowledge of the HTML,CSS and JS structure.

            As a sidenote - I'm slowing building a library that let you build the WebDialog UI via Ruby. But there's still quite a bit to go before it's properly usable.

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

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

              I agree with Thom - do the simplest thing that works. Make a simple WebDialog by hand until you understand how it interacts with the Ruby script. Then if/when you create the dialog using a wysiwyg editor, you will know where to look when things don't work.

              Hi

              1 Reply Last reply Reply Quote 0
              • jolranJ Offline
                jolran
                last edited by

                I suspected some of you experts did not use WYSIWYG editor or did not trust them fully.

                And get enough knowledge about the languages to know where to look,
                even if using an editor, is an advice I will follow.

                @unknownuser said:

                I'm slowing building a library that let you build the WebDialog UI via Ruby.

                That sound very interresting, and probably is a lot of work!
                The inbuilt UI-menu for sketchup seams to be very limited indeed, so
                this would be very welcomed.

                The more I read up on things the more I realise there isent so many shortcuts
                for knowledge.
                But Ill give it a try. Its fun.

                Thanks

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  To get you started, focus on HTML and JS - get the functionality first. Then start worrying about the layout ( CSS ).

                  Have a look at HTML Dog for tutorials: http://htmldog.com/
                  It's a site that teaches you good practices - something which is scarce amongst the flora of webdesign tutorials.

                  Start with a simple case, have a try, ask questions here - and you'll soon the rolling.

                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • jolranJ Offline
                    jolran
                    last edited by

                    Thanks ThomThom!

                    HTML dog indeed had some good libraries and tutorials.

                    I can see this "Ruby" side of Sketchup can fast become an addiction. A shame I havent started earlier.

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      Looking forward to seeing your creations. πŸ˜„ πŸ‘

                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • jolranJ Offline
                        jolran
                        last edited by

                        Thanks πŸ˜„

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

                        Advertisement