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~
Posts
-
RE: [Plugin] Save Copy As Previous Version
-
RE: [Plugin] Camera Settings Export/Import
Great plugin~ I was worrying how to compare two designs the very last minute~
-
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~
-
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!
-
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~ -
[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: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 theFile;;basename(__FILE__)
to ignore its own file name.
# 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 -
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? -
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=30078like Jim says, if you don't have so many plugins to switch on and off, it's useful~
-
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~ -
RE: The "Duh!" thread (aka the Doh! thread)
One more Duh:
If you are using a draw tool- drawing a line or a rectangle or an arc etc, and you've just drawn a first point,
you can now use the camera tool like walk, position camera, look around etc, to change your view, and then again use the draw tool,
your first point won't lose, you can finish your line or rectangle~Below is a short example(a small video)
If you are working in a narrow space, it's useful~
-
RE: The "Duh!" thread (aka the Doh! thread)
I noticed that the text tool have the second use to place a label on the screen: you can just select the tool and put the icon to the blank place and click...
You can write:copyright xxx~
I know someone have known that, but to me it's a big shock, and drives me to find more new method to use sketchup.And I realized the "paste in place" can be used between different files in October this year.
-
RE: [Plugin] Toggle Units
Great plugin~ I find it easy to switch from mm to M when just to measure the area of a plan now!
-
RE: [Plugin] Parametric Copy v1.01 20111030
Mybe the last version I have tested, had fixed the bug successfully! -
RE: [Plugin] Parametric Copy v1.01 20111030
@mikenon said:
@mirale999 said:
It didn't work on my sketchup 8.0, copied the object several times in one place... the error code below:
If you do not select any options, the default behavior is to just copy all of the objects in place. You must specify a formula for one of the dimensions. For instance, if you specify "Constant-Step" for x-translation, and set the value to 1-foot. Then each copy will be moved over by one foot along the x dimension. If you specify 0-feet, then all the copies will be in a single place. Also, if there is an error, I think it just goes ahead and makes all the copies, but does not do anything to them (so they all end up in one place).
Obviously, the code would benefit from some better error-handling. But I cant reproduce your error. Can you give more details of what you entered in the dialog boxes to generate it? Ive tested on OS X SU7 and OSX SU8.
Mike
Thank you for your patient answering, and below is my steps...
I'm using windows. I think I didn't do something wrong... I haven't learnt ruby yet, so I can't tell what's wrong with it, the only thing I can do is this...
-
RE: [Plugin] Chronolux for Sketchup
Wonderful thing! This is a good plugin for me to decide the shape of a building intuitively
"Test face results presenting" can give us one more choice: Pseudo-color map, like that in ecotect,
and in qpik's plugin: simple rays, the ray casting is more even and smooth. I think with this great plugin, we can get rid of the ecotect! haha~ -
RE: [Plugin] Parametric Copy v1.01 20111030
It didn't work on my sketchup 8.0, copied the object several times in one place... the error code below:
Error; #<NoMethodError; undefined method `new' for nil;NilClass> C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;453;in `applyFunc' C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;471;in `move' C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;599;in `run' C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ParametricCopy.rb;406;in `onLButtonDown
-
RE: [Plugin] Click2flip v1.0 20110928
@3dsmax9 said:
it's great to have a lot of choice thanks TIG, personally i prefer this one FrontFace1-2 : http://forums.sketchucation.com/viewtopic.php?t=13380
haha! I'm using frontface and Click2flip, they have different feature~ I appreciate the amazing performance of the former, while the latter is faster when I have so many small faces to reverse at once!
-
RE: [Plugin] Click2flip v1.0 20110928
A wonderful plugin! thank you TIGοΌI think TIG-flipBacks.rb is much more easier than other face reversers until now~
-
RE: [Plugin] ExtendTool v0.2 (update 20090708)
mitcorb say:"In the drop down menu I see Selection with a fly out trigger that doesn't fly out to show Extend Edges."
I have the some problem but I can use the tool, the submenu is like this picture: