can anyone write the plugin and give me... i am a newbie to both ruby and sketchup api...
thanks..
Latest posts made by venommax
-
RE: Skp to off format... plugin
-
Skp to off format... plugin
Hi all,
I am looking for a plugin that can convert skp file format to off format (object file format)...
right now i am converting skp file to stl file using a sketchup plugin and then converting it to off format using another software...
Any direct ways to do the same...Hoping to get a quick reply as usual.....
thanx... -
3 Problems
I am converting skp file to off format
I am facing 3 problems:1.I am not interested in the internal structure of the model. I only care for the surface of the model.... How do i delete the hidden geometry of the skp file....
2.Also I would like to reduce the size of the skp file. For this I do not want to use repetition of the component as when I convert to 'off' format it tends to obviously increase. Anything like reducing based on the number of vertices or number of surfaces(triangles)
3.Also I would to have all d normals in an skp file in one direction. How do i do it....
I really do not know much of ruby... any help is really appreciated... thanks...
-
RE: Returning other than boolean by send_action()
I want to export the skp model to a 2D Image as the thumbnail generated by the save_thumbnail method is very small. Using the UI.savepanel is not saving the file as expected.
-
Returning other than boolean by send_action()
Does Sketchup.send_action always return a boolean value. or can it also return any other UI.messagebox object to automate the response to the window generated by the send_action() method. like Sketchup.send_action(21237) opens a dialog box to export the file to 2D graphic of the file menu options ?
hoping to get a reply like earlier. -
RE: Removing 2D entities from skp using script
Thanx everyone and espp. TIG.. It has been my first post ever in any forum... This thread can be closed as the code by TIG solves the problem posted.
-
RE: Removing 2D entities from skp using script
@TIG I tried both of your methods. But both didnt work. The
entity.class is a Sketchup::ComponentInstance and not Image. I do not wish to select the 2d faces manually. Like for the above example of "horse rider face me" The whole of the 2d component should be deleted with nothing in the sketchup file.Or Like in this case http://sketchup.google.com/3dwarehouse/details?mid=238e0a5acc8ef3dd5cb2b1363f4a4cab&prevstart=72, the model has a person standing on the side(whos is not 3d ). So he should be detected and removed. But the bed(3d) should be intact. I need this to do a batch update on a set of sketchup images. So everything should be automatic.Thanks again for all d help...
-
RE: Removing 2D entities from skp using script
Like consider this skp file
http://sketchup.google.com/3dwarehouse/details?mid=7c756f37a95eb7af929c37a6b1ce275b. I should be able to identify that it has a 2d image and not a 3d model and should be able to delete the entity. Sometimes such 2d images also have the "face me" behavior.
Sry for not being clear the last time. -
Removing 2D entities from skp using script
Hi,
I am trying to identify 2d images in the skp files and delete them...
I tried with the functions like is2d? but it does not work..
I also tried using the bounding box. but the bounding box is generally a cuboid and not a rectangle.
Am I missing any function.thanks
The problem posted above is solved below....