Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Wrong cloning of Sketchup::Color objects

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    @fredo6 said: However, and wrongly, I thought Sketchup::Color was just an encapsulation of a 4-value array ... But that does bring up a very good point, that because it is compatible with an array (ie, has a to_a method and it's constructor accepts an array,)... making a clone method is beyond simple: For Ruby 2.0+; module Fredo6;;Cloner refine ;;Sketchup;;Color do def clone() self.class;;new(self.to_a) end end end using Fredo6;;Cloner module Fredo6;;SomePlugin # code that uses refined Color class end
  • Error message : 'reference to deleted Entities'

    6
    0 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    J
    Wild guess - he started a New model and so the @entities variable now refers to an invalid collection.
  • Ruby Classes

    2
    0 Szavazatok
    2 Hozzászólások
    7k Megtekintések
    Rich O BrienR
    You could also just use the forums to ask questions as you hit problems.
  • Script to automate Texturing a surface -> Render

    2
    0 Szavazatok
    2 Hozzászólások
    569 Megtekintések
    C
    Here's what my input/output folders look like after the script: http://i.imgur.com/9yTBr90.png
  • SketchUp Debugging for Notepad++

    22
    0 Szavazatok
    22 Hozzászólások
    5k Megtekintések
    J
    @ying2014 said: hello ,jim I use Press F5 to starting Sketchup Which version of SketchUp is being launched? Is the file "SURubyDebugger.dll" located in the correct folder (as in the image for SketchUp 16?) [image: Y3uS_2016-04_383.jpg] Does SketchUp start completely, or does it freeze? When started with the debug server, SketchUp will appear to freeze while it is waiting for a "start" or "continue" command from Notepad++. Is you firewall set to allow connections to SketchUp?
  • [Code] Sketchup.send_action() : Arguments to

    22
    0 Szavazatok
    22 Hozzászólások
    9k Megtekintések
    D
    it's been a while and maybe everyone has lost interest, but I found a few more for the mac list... the big question is, how many of these run on a PC? single # denotes a Menu Title, ## Item Title, ### hard coded shortcut combo... # SketchUp Sketchup.send_action('showAboutBox;') ## About SketchUp Sketchup.send_action('showSketchUpPreferences;') ## Preferences... Sketchup.send_action('manageLicenses;') ## License... Sketchup.send_action('checkWebUpdate;') ## Check Web for Update... Sketchup.send_action('hide;') ## Hide SketchUp ### ⌘H Sketchup.send_action('hideOtherApplications;') ## Hide Others ### ⌘H Sketchup.send_action('unhideAllApplications;') ## Show All Sketchup.send_action('terminate;') ## Quit SketchUp ### ⌘Q # File Sketchup.send_action('newDocument;') ## New ### ⌘N Sketchup.send_action('openDocument;') ## Open... ### ⌘O Sketchup.send_action('clearRecentDocuments;') ## Clear Menu Sketchup.send_action('performClose;') ## Close ### ⌘W Sketchup.send_action('saveDocument;') ## Save ### ⌘S Sketchup.send_action('saveDocumentAs;') ## Save As... ### ⇧⌘S Sketchup.send_action('saveCopy;') ## Save A Copy As... Sketchup.send_action('saveAsTemplate;') ## Save As Template... Sketchup.send_action('revertDocumentToSaved;') ## Revert Sketchup.send_action('sendToLayOut;') ## Send to LayOut Sketchup.send_action('importFromGoogleEarth;') ## Add Location... Sketchup.send_action('clearLocation;') ## Clear Location Sketchup.send_action('toggleTerrain;') ## Show Terrain Sketchup.send_action('browse3DWarehouse;') ## Get Models... Sketchup.send_action('shareWithGoogleEarthCommunity;') ## Share Model... Sketchup.send_action('runImporter;') ## Import... Sketchup.send_action('runPageLayout;') ## Page Setup... ### ⇧⌘P Sketchup.send_action('runDocumentSetup;') ## Document Setup... Sketchup.send_action('printDocument;') ## Print... ### ⌘P # Edit Sketchup.send_action('editUndo;') ## Undo ### ⌘Z Sketchup.send_action('editRedo;') ## Redo ### ⇧⌘Z Sketchup.send_action('cut;') ## Cut ### ⌘X Sketchup.send_action('copy;') ## Copy ### ⌘C Sketchup.send_action('paste;') ## Paste ### ⌘V Sketchup.send_action('pasteInPlace;') ## Paste In Place Sketchup.send_action('editDelete;') ## Delete Sketchup.send_action('eraseConstructionGeometry;') ## Delete Guides Sketchup.send_action('selectAll;') ## Select All ### ⌘A Sketchup.send_action('deselectAll;') ## Select None ### ⇧⌘A Sketchup.send_action('editHide;') ## Hide ### ⌘E Sketchup.send_action('editUnhide;') ## Selected Sketchup.send_action('editUnhideLast;') ## Last Sketchup.send_action('editUnhideAll;') ## All ### ⇧⌘E Sketchup.send_action('editLock;') ## Lock Sketchup.send_action('editUnlockSelected;') ## Selected Sketchup.send_action('editUnlockAll;') ## All Sketchup.send_action('makeComponent;') ## Make Component... ### ⇧⌘G Sketchup.send_action('makeGroup;') ## Make Group ### ⌘G Sketchup.send_action('closeGroupOrComponent;') ## Close Group/Component ### ⇧⌘G Sketchup.send_action('intersectWithModel;') ## With Model Sketchup.send_action('intersectSelected;') ## With Selection Sketchup.send_action('intersectWithContext;') ## With Context # View Sketchup.send_action('toggleToolPalette;') ## Large Tool Set Sketchup.send_action('toggleSolidModelToolPalette;') ## Solid Tools Sketchup.send_action('toggleGoogleToolPalette;') ## Location Sketchup.send_action('toggleWarehouseToolPalette;') ## Warehouse Sketchup.send_action('togglePageTabsDsiplay;') ## Scene Tabs Sketchup.send_action('viewShowHidden;') ## Hidden Geometry Sketchup.send_action('sectionToggleDisplay;') ## Section Planes Sketchup.send_action('sectionToggleActivation;') ## Section Cuts Sketchup.send_action('viewShowAxes;') ## Axes Sketchup.send_action('viewShowGuides;') ## Guides Sketchup.send_action('toggleShadows;') ## Shadows Sketchup.send_action('toggleFog;') ## Fog Sketchup.send_action('toggleDisplayEdges;') ## Edges Sketchup.send_action('toggleDisplayBackEdges;') ## Back Edges Sketchup.send_action('toggleProfiles;') ## Profiles Sketchup.send_action('toggleDepthQue;') ## Depth Cue Sketchup.send_action('toggleExtensions;') ## Extension Sketchup.send_action('toggleGlobalTransparency;') ## X-ray Sketchup.send_action('renderWireframe;') ## Wireframe Sketchup.send_action('renderHiddenLine;') ## Hidden Line Sketchup.send_action('renderShaded;') ## Shaded Sketchup.send_action('renderTextures;') ## Shaded With Textures Sketchup.send_action('renderMonochrome:') ## Monochrome Sketchup.send_action('toggleHideRestOfModel;') ## Hide Rest of Model Sketchup.send_action('toggleHideSimilarComponents;') ## Hide Similar Components Sketchup.send_action('pageAdd;') ## Add Scene Sketchup.send_action('pageUpdate;') ## Update Scene Sketchup.send_action('pageDelete;') ## Delete Scene Sketchup.send_action('pagePrevious;') ## Previous Scene Sketchup.send_action('pageNext;') ## Next Scene Sketchup.send_action('slideshowStart;') ## Play Sketchup.send_action('pageOptions;') ## Settings Sketchup.send_action('toggleToolbarShown;') ## Hide Toolbar Sketchup.send_action('runToolbarCustomizationPalette;') ## Customize Toolbar ... # Draw Sketchup.send_action('selectLineTool;') ## Line ### ⌘L Sketchup.send_action('selectFreehandTool;') ## Freehand ### ⌘F Sketchup.send_action('selectArc3PointTool;') ## Arc ### ⌘J Sketchup.send_action('selectArcTool;') ## 2 Point Arc Sketchup.send_action('select3PointFitArcTool;') ## 3 Point Arc Sketchup.send_action('selectArcPieTool;') ## Pie Sketchup.send_action('selectRectangleTool;') ## Rectangle ### ⌘K Sketchup.send_action('selectRectangle3PointTool;') ## Rotated Rectangle Sketchup.send_action('selectCircleTool;') ## Circle Sketchup.send_action('selectPolygonTool;') ## Polygon # Camera Sketchup.send_action('viewUndo;') ## Previous Sketchup.send_action('viewRedo;') ## Next Sketchup.send_action('viewTop;') ## Top ### ⌘1 Sketchup.send_action('viewBottom;') ## Bottom ### ⌘2 Sketchup.send_action('viewFront;') ## Front ### ⌘3 Sketchup.send_action('viewBack;') ## Back ### ⌘4 Sketchup.send_action('viewLeft;') ## Left ### ⌘5 Sketchup.send_action('viewRight;') ## Right ### ⌘6 Sketchup.send_action('viewIso;') ## Iso ### ⌘7 Sketchup.send_action('viewParallelProjection;') ## Parallel Projection Sketchup.send_action('viewPerspective;') ## Perspective Sketchup.send_action('viewTwoPointPerspective;') ## Two-Point Perspective Sketchup.send_action('cameraMatchNewPhoto;') ## Match New Photo... Sketchup.send_action('editPhotoMatch;') ## Edit Matched Photo Sketchup.send_action('selectOrbitTool;') ## Orbit ### ⌘B Sketchup.send_action('selectDollyTool;') ## Pan ### ⌘R Sketchup.send_action('selectZoomTool;') ## Zoom Sketchup.send_action('selectFieldOfViewTool;') ## Field of View Sketchup.send_action('selectZoomWindowTool;') ## Zoom Window Sketchup.send_action('viewZoomExtents;') ## Zoom Extents Sketchup.send_action('viewZoomToSelection;') Sketchup.send_action('viewZoomImage;') ## Zoom to Photo Sketchup.send_action('selectPositionCameraTool;') ## Position Camera Sketchup.send_action('selectWalkTool;') ## Walk Sketchup.send_action('selectTurnTool;') ## Look Around Sketchup.send_action('selectImageIglooTool;') ## Image Igloo # Tools Sketchup.send_action('selectSelectionTool;') ## Select Sketchup.send_action('selectEraseTool;') ## Eraser Sketchup.send_action('selectPaintTool;') ## Paint Bucket Sketchup.send_action('selectMoveTool;') ## Move ### ⌘0 Sketchup.send_action('selectRotateTool;') ## Rotate ### ⌘8 Sketchup.send_action('selectScaleTool;') ## Scale ### ⌘9 Sketchup.send_action('selectPushPullTool;') ## Push/Pull Sketchup.send_action('selectExtrudeTool;') ## Follow Me Sketchup.send_action('selectOffsetTool;') ## Offset Sketchup.send_action('selectOuterShellTool;') ## Outer Shell Sketchup.send_action('selectUnionTool;') ## Union Sketchup.send_action('selectDifferenceTool;') ## Subtract Sketchup.send_action('selectDifferenceNDTool;') ## Trim Sketchup.send_action('selectIntersectTool;') ## Intersect Sketchup.send_action('selectBooleanSplitTool;') ## Split Sketchup.send_action('showSolidModelToolsMenu;') ## Split Sketchup.send_action('selectMeasureTool;') ## Tape Measure ### ⌘D Sketchup.send_action('selectProtractorTool;') ## Protractor Sketchup.send_action('selectAxisTool;') ## Axes ### ⌘F Sketchup.send_action('selectDimensionTool;') ## Dimensions Sketchup.send_action('selectTextTool;') ## Text Sketchup.send_action('doThreeDText;') ## 3D Text Sketchup.send_action('selectSectionPlaneTool;') ## Section Plane ### ⌘Y # Window Sketchup.send_action('performMiniaturize;') ## Minimize ### ⌘M Sketchup.send_action('performZoom;') ## Zoom Sketchup.send_action('showModelPropertiesPanel;') ## Model Info ### ⇧⌘I Sketchup.send_action('entityProperties;') ## Entity Info ### ⌘I Sketchup.send_action('orderFrontColorPanel;') ## Materials ### ⇧⌘C Sketchup.send_action('showComponentBrowser;') ## Components Sketchup.send_action('showStyleBrowser;') ## Styles Sketchup.send_action('showLayerPanel;') ## Layers Sketchup.send_action('showOutliner;') ## Outliner Sketchup.send_action('showPagePanel;') ## Scenes Sketchup.send_action('orderFrontFontPanel;') ## Show Fonts ### ⌘T Sketchup.send_action('showRubyConsole;') ## Ruby Console Sketchup.send_action('showShadowsPanel;') ## Shadows Sketchup.send_action('showFogSettingsPanel;') ## Fog Sketchup.send_action('showPhotoMatchPanel;') ## Match Photo Sketchup.send_action('showSoftenEdgesPanel;') ## Soften Edges Sketchup.send_action('showInstructor;') ## Instructor Sketchup.send_action('browse3DWarehouse;') ## 3D Warehouse Sketchup.send_action('browseExtensionStore;') ## Extension Warehouse Sketchup.send_action('toggleInspectors;') ## Hide Dialogs Sketchup.send_action('getPhotoTexture;') ## Photo Textures !!!!!!!!!!!! not working Sketchup.send_action('arrangeInFront;') ## Bring All to Front # Help Sketchup.send_action('showWelcomePanel;') ## Welcome To SketchUp… Sketchup.send_action('showOnlineHelpCenter;') ## Knowledge Center Sketchup.send_action('contactUs;') ## Contact Us # Orphans Sketchup.send_action('fixNonPlanarFaces;') ## Model Info >> Statistics >> Fix Problems I may have missed some... john
  • Web dialog not displaying local image

    7
    0 Szavazatok
    7 Hozzászólások
    1k Megtekintések
    D
    here's that toolbar example http://sketchucation.com/forums/viewtopic.php?p=363402#p363402... personally I avoid jpg like the plague and would go for png... require 'base64' File.open('imagetobase64.png', 'r') do |image_file| puts Base64.encode64(image_file.read) end john
  • Find to which face a door belong

    4
    0 Szavazatok
    4 Hozzászólások
    811 Megtekintések
    sdmitchS
    @maryamr said: thnx for your answer. there is a cases where a model can contain 2 windows linked to a door like the model below, but it doesn't appear using your code Seems rather odd to have windows connected to a door but then I'm no architect. It finds the door but it also thinks the door is a wall and the wall is a door because it has an edge that fits the door criteria, vertical and shorter than the adjoining face. ps. Files posted should be version 8 so that, the unfortunate ones like myself who don't have the latest Sketchup version, can view the model.
  • Force sketchup ctrl+s/autosave to sketchup 8?

    5
    0 Szavazatok
    5 Hozzászólások
    925 Megtekintések
    M
    Wow I just added a ctrl+shift+s shortcut in preferences like you said and it works! Thanks a lot!
  • Position of SU viewport versus computer screen

    6
    0 Szavazatok
    6 Hozzászólások
    2k Megtekintések
    A
    Hello fredo. For windows, you can use Win32 API or a C++ extension to get viewport origin in screen coordinates. It has been discussed here: http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=61867#p566233 It won't work on Mac, however, I guess you could try what driven suggested.
  • Plugin Help

    2
    0 Szavazatok
    2 Hozzászólások
    516 Megtekintések
    TIGT
    What you suggest could be done. You'd just have set up your code to execute as SketchUp loads, rather than giving the user the choice. BUT this would be very restrictive ! With your concept, every time a user opened SketchUp it'd run your Plugin to make a room ? What's so bad about having it like 99.9% of tools, which run off a menu entry [or toolbar or context-menu] ? You have given a limited description of your tool, but I suspect that you don't really want to do what you have so far said...
  • Thomthom, can you help me ?

    7
    0 Szavazatok
    7 Hozzászólások
    1k Megtekintések
    thomthomT
    Yes, unfortunately SU added a Test module for internal testing methods a long time back - before we included StdLib.
  • Extension creation code

    2
    0 Szavazatok
    2 Hozzászólások
    514 Megtekintések
    TIGT
    You have omitted some code and added in other unneeded code. Try: ` # Load the normal support files. require 'sketchup.rb' require 'extensions.rb' Create the extension. ext = SketchupExtension.new('pluginName', File.join('pluginFolder', 'pluginLoader.rb')) # Optionally 'name' the Extension - it can differ from the registered name. ext.name = 'pluginName' Attach some nice info. ext.creator = 'xxxxx' ext.version = '1.0.0' ext.copyright = '2016, xxxxxxxx' ext.description = 'xxxxxxxxxxxxxxxxxxx' # This 'path' is NOT needed. ext.extension_path=File.join(File.dirname(FILE), "pluginFolder" ) Register and load the extension on startup. Sketchup.register_extension(ext, true)` Add in the bold code and remove the struck-through code...
  • Where to store Global Settings for Plugin

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    TIGT
    Both writing and reading with the registry with http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup#write_default and http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup#read_default is relatively straightforward and is applicable on an individual version and user basis, and can be construed to cover your own extension name and several key/value pairs as desired. However, the 'friendliness' I alluded to was relating to how it stores some of your data values. You can easily make some tests without attaching it to your main code. The newer versions of Sketchup do quite a good job of storing integers, floats, strings***, arrays*** and hashes and reading them back in successfully. See below for the *** caveats... *** There are some pitfalls to be avoided - e.g. including a double-quote " inside a string [e.g. even when properly escaped with a \]... so do NOT write "1'6\"" as a string, because you cannot read it back [the read back and now 'un-escaped' " produces an error], so you must use "1'6\\\"" to ensure that the enclosed " is properly escaped as \" when it's written, so it can be read back successfully... This sidestep applies to any plain string and also any string stored inside an array [where Ruby also encloses these inside double-quotes], but perversely hashes are OK with this because when a string is inside a hash that's written to the registry it is properly escaped 'doubly' [ "1'6\\\"" >> "1'6\""] so reads back in OK without any trapping here... These are just annoyances which can be got around... But watch out for them...
  • Icon Sizes

    2
    0 Szavazatok
    2 Hozzászólások
    699 Megtekintések
    thomthomT
    Originally icons for SU where 24x24 and 16x16. However, when the toolbar system got updated for SU8 on Windows they technically changed to 32x32 and 24x24. When I say "technically" it's because the icons shipped in SU wasn't visually larger. They just got updated with extra white-space padding. The API layer automatically applied padding to smaller icons. Now, since then my history is a bit fuzzy. I don't recall if out icons now are actually larger. But you could, via the API make a small icon fill out a full 24x24 size. But you should check if the outer edge might overlap with some of the button borders. Verify that they look similar to the rest of the toolbar icons in SU. Also, I observed recently on OSX that different sizes will might look fuzzy on a low-res monitor. I think the larger icons looks better in the main OSX toolbar, but will look blurred in the floating toolbar.
  • Newbie Ruby Question

    6
    0 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    TIGT
    To find the face in its 'context' you need to use definition.instance[0].entities or group.entities rather than model.active_entities, or model.entities
  • Ruby API and Ruby classes

    2
    0 Szavazatok
    2 Hozzászólások
    687 Megtekintések
    S
    It is entirely permissible and pretty common to devote one file to each class. However, if you do so you will need to put your files into your own subfolder of Plugins, because otherwise SketchUp will try to load all of the individual .rb files as it starts up, which is not what you need. Instead, you should have a master file that loads/requires the others as and when needed. Also, you should look into the SketchUpExtension class, as it provides a natural way to manage your code in SketchUp. And, above all, you should wrap all of your code inside your own personal module to prevent it from clashing with other plugins and extensions.
  • Re-apply texture / move UVs inside a component

    4
    0 Szavazatok
    4 Hozzászólások
    871 Megtekintések
    E
    Here it is working by shoving texture opposite way. It breaks when doing any rotations, as the texture moves relative to component axis which is now rotated relative to red/green axis. There are manual workarounds, not very convenient though. The inbuilt sketchup eyedropper/bucket works perfectly because it ignores all that and just projects it on, just couldn't simulate it in ruby, so had to go the moving texture opposite direction to component. [image: JosV_texturemapping.gif]
  • Knowing that a face contains another face using Ruby API ?

    10
    0 Szavazatok
    10 Hozzászólások
    1k Megtekintések
    M
    oh oky i understand now, thank you soo much this realy helped (y)
  • Help getting Parallel Projection in current view from Ruby

    3
    0 Szavazatok
    3 Hozzászólások
    1k Megtekintések
    S
    Thanks thomthom, you never let me down.

Advertisement