sketchucation logo sketchucation
    • Login
    1. Home
    2. mirale999
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 25
    • Groups 1

    mirale999

    @mirale999

    10
    Reputation
    1
    Profile views
    25
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    mirale999 Unfollow Follow
    registered-users

    Latest posts made by mirale999

    • RE: [Plugin] Save Copy As Previous Version

      Fantastic plugin! Since I begin using the 2013 version, I,m always annoyed with this same thing.
      But I find that if I have mcafee in my system, the .vbs in the TEMP folder will be blocked, is there a safe folder can be used for the vbs, such as the sketchup folder? That will be better~

      posted in Plugins
      M
      mirale999
    • RE: [Plugin] Camera Settings Export/Import

      Great plugin~ I was worrying how to compare two designs the very last minute~

      posted in Plugins
      M
      mirale999
    • RE: [Plugin] SectionByCamera (V0.2) - UPDATED 4 June 2012

      great plugin~! I just wanted this function a few days, for my works to display better~

      posted in Plugins
      M
      mirale999
    • RE: [Plugin] Multiple Offsets (Updated 09-Feb-2014)

      Great plugin~

      posted in Plugins
      M
      mirale999
    • RE: [Plugin] Add Named Scene

      @thomthom said:

      But.... if you delete a scene or two you'll end up with duplicate names. So if you want to avoid that, then you need to make some extra checks.

      Done!

      posted in Plugins
      M
      mirale999
    • RE: [Plugin] Add Named Scene

      @thomthom said:

      Ah - looking at your code now:

      Your Scene is a constant. But you are using it as a variable.

      You need to look into the difference between variables and constants. Initial capital letter means a constant in Ruby.

      Here's an amended version:

      I make the default name of the scene be made out of the number of existing pages in the current model. If you do it your way, with instance variables instead of constants, then it would just keep on counting between models.

      I also cleaned up your indentation. Always keep your source code clean and organized, good indentation makes it easier to read - which is essential to debug and maintain your code.

      Thanks Thomas~!! I use your code and now it's a correct version!
      And the Scene name is the very same as the normal one~

      posted in Plugins
      M
      mirale999
    • [Plugin] Add Named Scene

      Hi all,I'm a newbie in ruby, although being here several years...
      I made a little plugin that lets you give a name upon adding a new scene~

      Name : Named_Scene.rb

      Date : v1.0 11/12/6

      Description : To Let you rename it upon adding a new scene

      Menu Item : View -> Add Named Scene

      %(#a2a2a2)[Still have a problem, I want that: when clicking the menu or hot key, give you a small inputbox, and write the name, and create, you can also not change the default name, and add the new scene as normal~ The default name of the new scene can increase each time, I made the "Scene_Num" to do it but everytime it is "scene 1".

      Who can teach me how to? πŸ˜•]

      Thanks Thomthom~! I've updated the attachment below!
      Now it works like this :
      Hit the hotkey or click the menu item, give you an inputbox, you can choose to give the new a unique name, Or leave it to its default and create like normal: Scene 1- Scene 2- Scene 3-...
      The first one define the new tab's name according to the number of existing pages:

      Named_Scene.rb

      Finally make the second one that do exactly the same thing as the normal scene tool, scene 1 - scene 2 - scene 3 - scene 4 - ... ignoring the number of existing pages, %(#BF0000)[will not have any duplicate names! πŸ˜„]
      & Use the

      File;;basename(__FILE__)
      

      to ignore its own file name.

      Named_Scene2.rb

      # mirale999 first release, with Thomthom's help.
      # Permission to use, copy, modify, and distribute this software for 
      # any purpose and without fee is hereby granted
      # Freely use
      # Name               ;          Named_Scene.rb
      # Date               ;          v1.0 11/12/6
      # Description        ;          To Let you rename it upon adding a new scene
      # Menu Item          ;          View -> Add Named Scene
      
      # It works like this ;
      # Hit the hotkey or click the menu item, give you an inputbox, you can
      # choose to give the new a unique name, Or leave it to its default and
      # create like normal; Scene 1- Scene 2- Scene 3-...
      #----------------------------------------------------------------------------
      
      require 'sketchup.rb'
      
      module Named_Scene
        
        # Add menu items.
        unless file_loaded? File;;basename(__FILE__)
          add_separator_to_menu("View")
          UI.menu("View").add_item("Add Named Scene") { self.add_namedScene }
        end
      
        @@scene_i = 1
      
        def self.add_namedScene
          model = Sketchup.active_model
          pages = model.pages    
      
          # Ask user for page name.
          list = []
          prompts = ["Scene Name;"]
          defaults = ["Scene"+" "+"#{@@scene_i}" ]
          input = UI.inputbox( prompts, defaults, list, "Add Named Scene" )
      
          # Check if the user cancelled.
          return if input==false
      
          # Get data from result array
          scene_name = input
          @@scene_i = @@scene_i + 1
      
          status = pages.add( scene_name.to_s )
        end
        
      end
      
      #-----------------------------------------------------------------------------
          file_loaded File;;basename(__FILE__)
      #-----------------------------------------------------------------------------
       
      
      

      Hi all, after several years this small plugin has a bug because of the new version of ruby, and mariocha adds LanguageHandler in this version.The new modified version is here:
      Named_Scene2.rbz

      posted in Plugins
      M
      mirale999
    • RE: Idea- Polygon Selection

      Er,I searched the google sketchup API, and maybe there's no such API to do this work? So it's no use to write such a plugin like this using Ruby.
      I think it may be in the SelectionObserver class or camera class, and I don't find one... Dear Thomthom, Am I get the point?

      posted in Plugins
      M
      mirale999
    • RE: [Request]Reset Interface or Turn all Plugins on/off

      I think you're finding this plugin:
      http://forums.sketchucation.com/viewtopic.php?f=323&t=30078

      like Jim says, if you don't have so many plugins to switch on and off, it's useful~ πŸ˜„

      posted in Plugins
      M
      mirale999
    • RE: SUTools 2012 - Install help!?

      You mean you've downloaded the latest version: Sutool 2012?!
      I searched the sketchupbbs.com and didn't find instructions about installing on mac...perhaps they didn't make the Macintosh version...
      Btw I don't use the Sutool, search plugins in this forum, I think it's enough~ β˜€

      posted in Plugins
      M
      mirale999