sketchucation logo sketchucation
    • Login
    1. Home
    2. renderiza
    3. Posts
    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!
    🚨 Skimp | 25% Off until March 30 Buy Now
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 98
    • Posts 783
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Triangulate triangles ?

      I sure don't call the code below a success but its definitely interesting...

      http://s13.postimg.org/yerdljl8n/eee.jpg

      
      model = Sketchup.active_model
      ents = model.active_entities
      sel = model.selection
      faces = sel.grep(Sketchup;;Face)
      
      model.start_operation('csplit')
        faces.each do |face|
          vertices = face.vertices
          edges = face.edges
          bbox = face.bounds
          cpoint = bbox.center
      
         edges.each do |e|
            e1 = e.start.position
            e2 = e.end.position      
      
            x = (e2.x + e1.x) / 2
            y = (e2.y + e1.y) / 2 
            z = (e2.z + e1.z) / 2
      
            vertices.each do |vertex|
              p1 = [x, y, z]
              p2 = vertex
              line = ents.add_line p1,p2
            end
          end    
        end
        sel.clear
      model.commit_operation
      

      Note: I also find strange that new edges don't intersect with each othere making a new vertex...why is this?

      posted in Plugins
      renderizaR
      renderiza
    • RE: Triangulate triangles ?

      Not as easy as using the center of face.bounds.center is it. πŸ˜•

      If I find the best way to do it with code I'll let you know...Best of luck! πŸ‘

      posted in Plugins
      renderizaR
      renderiza
    • RE: Triangulate triangles ?

      Both of these are very useful so maybe add an option to choose between the two.

      http://s23.postimg.org/sp0h6r557/e_1.png

      posted in Plugins
      renderizaR
      renderiza
    • RE: Triangulate triangles ?

      Thank you TIG! πŸ‘

      posted in Plugins
      renderizaR
      renderiza
    • RE: Triangulate triangles ?

      Hahaha!

      TIG I would be very happy if you modify your existing plugin to add Pilou is feature request. πŸ‘

      I am interested in making this for learning and I have some additional ideas I want to explore. I consider you my mentor TIG and there will never be competition between you and me I promise! πŸ’š

      By the way thanks for the suggestion! πŸ‘

      Here is updated code...

      model = Sketchup.active_model
      ents = model.active_entities
      sel = model.selection
      faces = sel.grep(Sketchup;;Face)
      
      model.start_operation('csplit')
        faces.each do |face|
          vertices = face.vertices
          bbox = face.bounds
          cpoint = bbox.center
      
          vertices.each do |vertex|
            p1 = cpoint
            p2 = vertex
            line = ents.add_line p1,p2
          end
        end
        sel.clear
      model.commit_operation
      
      posted in Plugins
      renderizaR
      renderiza
    • RE: Triangulate triangles ?

      I will do that! πŸ‘

      posted in Plugins
      renderizaR
      renderiza
    • RE: Triangulate triangles ?

      Here is an example code for achieving what you want Pilou...

      
      model = Sketchup.active_model
      ents = model.active_entities
      sel = model.selection
      faces = ents.grep(Sketchup;;Face)
      
      faces.each do |face|
        vertices = face.vertices
        bbox = face.bounds
        cpoint = bbox.center
      
        vertices.each do |vertex|
          p1 = cpoint
          p2 = vertex
          line = ents.add_line p1,p2 
         end
      end
      
      

      Note: Some very pretty geometry start appearing when you keep splitting! πŸ‘

      posted in Plugins
      renderizaR
      renderiza
    • RE: Triangulate triangles ?

      Adding the feature to slit multiple face by automatically finding the center point will be great addition! This should triangulate any type of face aka trig, quad, ect... Because your connecting a line from center to every other vertex. Maybe adding things like skip one vertex every time you add a line will be interesting to see.

      Rich O Brian that would be great as well!

      posted in Plugins
      renderizaR
      renderiza
    • RE: [Plugin] Canvas v1.1.3

      Very happy to see everyone is comments thank you! πŸ’š

      posted in Plugins
      renderizaR
      renderiza
    • RE: Creating revenue from plugins

      Hi,

      With the introduction of 'PluginStore' and 'Extension Warehouse' it has become more accessible for developers to share plugins and maybe in the near future these platforms will allow authors to sell them as well. (fingers crossed)

      As of right now donations are a welcome addition to 'PluginStore' and even though there are people who have generously donated, this kind of appreciation is considered a rare event. Most of them will thank you by leaving a nice comment and this can be very rewarding as well.

      Selling plugins will hopefully inspire developer to increase the production value of their plugins so they can have an edge vs competitors. Not only the code should improve but also the interface, graphics, documentation, ect...

      On the other hand I am afraid to see the dark side of competition which I am sure you guys can think of a few.

      Cheers! πŸ‘

      posted in Developers' Forum
      renderizaR
      renderiza
    • RE: [Plugin] Canvas v1.1.3

      Don't see that error on my Ruby Console but I uploaded another file to Plugin Store to solve it so please install that to see if the error goes away.

      Thanks and sorry for inconvenience.

      NOTE: IMPORTANT! You need to install the latest Internet Explorer version. This plugin uses HTML5 & jQuery and if your browser doesn't support that it can cause problems.

      posted in Plugins
      renderizaR
      renderiza
    • RE: [Plugin] Canvas v1.1.3

      @guanjin said:

      Can not be opened, an error πŸ˜’

      One more thing...

      Can you verify that your plugins folder permission are set to full?

      Thanks!

      posted in Plugins
      renderizaR
      renderiza
    • RE: [Plugin] Canvas v1.1.3

      @guanjin said:

      Can not be opened, an error πŸ˜’

      Can you close SketchUp and try running the plugin again a second time?
      If I am not mistaken that error should go away...Please let me know.

      That error has to do with trying to load the previous data stored but since your loading the plugin for the very fist time there is no data to load. πŸ˜•

      I thought I solved this by adding a condition to skip that line of code if there was no data but it seems the problem persists.

      I will be very grateful if another person confirm this issue and if it went away the second time trying to load the plugin.

      Thanks!

      @halroach said:

      Very nice Renderiza!

      1. It would be great to have the ability to choose a bunch/list of components to paint, that alternate randomly or in a cycle - kinda like with the "component spray" plugin.

      2. An idea to think about... Having the ability to set a point in space that all blue axis of newly inserted components will align to. Like a magnet point.

      3. The ability to rotate objects randomly in all axis. Not only in the XY. Not sure what it would be good for... but it could be nice.

      Very good suggestions!
      Will try to integrate them for future updates. πŸ‘

      @jpalm32 said:

      Really clean polished work. Well done.

      I appreciate your comment thank you! πŸ˜„

      posted in Plugins
      renderizaR
      renderiza
    • RE: [Plugin] Canvas v1.1.3

      [pre:101ascxl]Authors:: Renderiza
      Plugin Name:: Canvas
      Version:: 1.1.3
      Date:: 10/12/2013
      Cost:: Free[/pre:101ascxl]
      Canvas v1.1.3 is now available for download.

      posted in Plugins
      renderizaR
      renderiza
    • RE: [Plugin] Axis Cam v1.0.4

      @timzy said:

      It would be really great to be able to have this type of motion play back as scenes.

      I recommend using AxisCam with Camera Recorder by Chris Fullmer.

      It will allow you to record the camera animation so you can play it back and export it if you want to.

      @timzy said:

      I found the "a, d" keys slightly disorientating for a moment. Most people will expect the same behaviour as common game controls: a = left, d = right, w = forward, s = backward, shift = up, ctrl = down. I think new users will pretty much always be confused be a field of view change.

      For next update it will be best to allow the user to configure the keyboard as he wants to.

      @timzy said:

      Realistically it only took a few minutes to figure it out. Maybe your keyboard control layout could pop up on first launch? I almost expected that I could click on your web dialogue in place of the keystrokes.

      Its a good idea to display keyboard shortcuts when user first open script but also have the option to never show popup again for next sessions. As for clicking on we-dialog instead of keyboard that could be another feature for the future.

      Thank you for you feedback I really appreciate it! πŸ‘

      posted in Plugins
      renderizaR
      renderiza
    • RE: [Plugin] Canvas v1.1.3

      @halroach said:

      It looks very similar to Component Spray. So what are the differences?

      http://sketchucation.com/forums/viewtopic.php?p=298004#p298004

      Hi,

      There are couple differences but I guess the most significant is how each plugin choose to apply the objects. You can paint a single object at a time by left clicking with both plugins, but when it comes to applying multiple entities each extension have their unique ways of doing so.

      Canvas will spray multiple objects by clicking & holding the left mouse button so that when you move around it will paint.

      Component Spray has different shapes like line,triangle,square, ect. so the user draws with that shape and multiple object will spray according to that.

      Both support random scale & rotate feature and each of them have different type of filters for applying object.


      Note: I am currently working on Canvas for improving its web-dialog so keep an eye for future update

      Thanks!

      posted in Plugins
      renderizaR
      renderiza
    • RE: How to store web-dialog parameters/settings?

      It works! 😍

      Did simple test that saved some of the web-dialog settings.

      def activate
        @@check = "start"
      end
      
      def deactivate(view)
        @@check = "end"
      end
      
      def push_frame(dialog,data)
        params = query_to_hash(data)
      
        ################
        ##    START   ##
        ################
        if @@check == "start"
          @@check = "no"
      			
          saved = Sketchup.read_default("canvas_panel", "store_dlg")
          UI.messagebox saved #Will prompt last selected value before closing from web-dialog
        end
        ################
        ##     END    ##
        ################
        if @@check == "end"
          @@check = "no"
      
          inp = params['sel_ip'].to_s #This is value from web-dialog
          Sketchup.write_default("canvas_panel", "store_dlg", inp)
        end
      end
      

      Need to do what TIG suggested which was to make array into string to store multiple web-dialog settings. After that will have to use that data to make web-dialog use the settings last used when it was last closed.

      posted in Developers' Forum
      renderizaR
      renderiza
    • RE: How to store web-dialog parameters/settings?

      TIG

      That is very valuable info thank you for sharing! πŸ‘

      jiminy-billy-bob

      Thank you for the example I am currently trying to apply it to my plugin... Hope it will work!(crossing fingers) πŸŽ‰

      Will let you know if it worked or not soon...Cheers!

      posted in Developers' Forum
      renderizaR
      renderiza
    • How to store web-dialog parameters/settings?

      What would be ideal for storing web-dialog parameters/settings?

      I already tried to use HTML5 local storage but it seems not work locally without having a server installed (don't have server installed).

      jiminy-billy-bob suggested Sketchup.write_default ... Is this the best option? Can someone post an easy to follow example on how to implement it?

      Currently, when storing data I tend to use Sketch Up entity type group for its name or description space but I wan to learn other ways. Thanks in advance!

      posted in Developers' Forum
      renderizaR
      renderiza
    • RE: [Plugin] Rename by Layer v1.0.3

      @jiminy-billy-bob said:

      http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup.php#write_default
      πŸ˜‰

      Hi,

      It seems HTML 5 localStorage & sessionStorage can't work locally without having a server installed so that means I can't use that technology. 😒

      Hopefully I can have more luck with 'Sketchup.write_default'. πŸ˜’

      Thanks!

      posted in Plugins
      renderizaR
      renderiza
    • 1
    • 2
    • 6
    • 7
    • 8
    • 9
    • 10
    • 39
    • 40
    • 8 / 40