🚨 Skimp | 25% Off until March 30 Buy Now

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
  • Similar Group Finder - Script beginning needs testing

    13
    0 Szavazatok
    13 Hozzászólások
    834 Megtekintések
    TIGT
    I use... class Float def =~(num2,tol=10000) num1=(self*tol).to_i num2=(num2*tol).to_i return true if num1==num2 return nil end end #class Float
  • A face divider

    7
    0 Szavazatok
    7 Hozzászólások
    699 Megtekintések
    B
    Hello my name paan, can you find or make sketchup plugin that can detect the edge of the texture and turn into that shape . It's more like make the rectangle turn into the shape of the texture that have transparent background . sorry for my bad English and i hope you understand what i meant and if you find it don't forgate to send an email to me at: fan_mustar@yahoo.com.my
  • Getting global coordinates

    5
    0 Szavazatok
    5 Hozzászólások
    926 Megtekintések
    B
    TIG, thanks a lot! The script worked very well. So, I will include it inside the main script. I wont forget to speak folds its aid. Really very thanks Sérgio
  • Dialog - Simple WebDialog Communication Underware

    17
    0 Szavazatok
    17 Hozzászólások
    4k Megtekintések
    Dan RathbunD
    Got another 'jewel' for the WebDialog list of treasure's: If you want to have the nice XP styled 'themed' controls (buttons, scrollbars, tabs, etc.), instead of the old ugly Win 3.x style, there's a META tag to put in the HEAD section. This 'formally' is known as MS Common Controls ver 6 (where the old ver was 5.) These controls are housed in comctl32.dll, which shipped with XP. (Look at properties to see product ver, not file version.) here's the tag: <!-- This tells the HTML frame to use MS Common Controls ver 6+ if available --> <!-- (also known as XP style themed controls.) .HTA files always NEED this. --> <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes"> For more info, see Using Visual Styles with HTML Content on page: http://msdn.microsoft.com/en-us/library/ms997646.aspx#xptheming_topic11 ..and BTW if ya' wonderin' why SU doesn't use ver 6 controls in their dialogs, it's because they didn't turn them 'on' (as a dependant assembly,) in the Sketchup.exe manifest. A holdover from preXP days I imagine. I'm running SU with them ON, but there are some display issues with the brown buttons on the left of the status bar (no images,) as well as few other things. [See post in Google groups, Technical Issues if interested. Have forwarded a 'bug' report to Google as well. Perhaps the next version, they'll have all the controls updated seeing as how they only support XP and higher.] .
  • WebDialog help - hide scrollbars

    31
    0 Szavazatok
    31 Hozzászólások
    6k Megtekintések
    Dan RathbunD
    @newone said: If so, why does it renders buttons so old-way? Sometimes Standards Compliant mode on MSIE turns MS Common Controls back to the old 'unthemed' set (they look like old Win 3.x ugly controls.) See my post in the other WebDialog thread for a META tag that goes in the HEAD section. Sometimes it can turn the 'XP themed' ver 6 controls back on. I don't know if they work in Strict mode, but the tag should work for Tranistional mode. http://forums.sketchucation.com/viewtopic.php?f=180&t=22698#p196706
  • UI.set_toolbar_visible

    8
    0 Szavazatok
    8 Hozzászólások
    605 Megtekintések
    thomthomT
    http://forums.sketchucation.com/viewtopic.php?f=180&t=21156 Just linking various related threads together for other people looking for the same topic.
  • REQ: THICKEN ??

    3
    0 Szavazatok
    3 Hozzászólások
    332 Megtekintések
    J
    ahhh, thank you...
  • Anyone with IE7 willing to do a quick test for me?

    8
    0 Szavazatok
    8 Hozzászólások
    418 Megtekintések
    thomthomT
    Mac? I've got a Mac Mini with OSX10.4 which I've used to try my plugin on. Just wanted to confirm a real IE7 system to see how the webdialog worked.
  • Newbie help - getting dimensions of a simple object

    4
    0 Szavazatok
    4 Hozzászólások
    292 Megtekintések
    M
    wow bounding box is such a neat thing.. thanks for pointing it out!!
  • Editing string variables

    9
    0 Szavazatok
    9 Hozzászólások
    404 Megtekintések
    thomthomT
    Plus, regex can handle the Unicode data from Sketchup, which SU's Ruby doesn't.
  • Weld Ruby - SIte/Topo lines

    3
    0 Szavazatok
    3 Hozzászólások
    615 Megtekintések
    rami_lpmR
    download that and place it in your sketchup\plugins folder, next time you open sketchup, the tool will be in the plugins menu. good luck.
  • Experimental webdialog prototype

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    T
    @chrisglasier said: So if you don't mind I'll delete the files in this topic to save face! I don't mind and I am looking forward to the new device.
  • Anyone know how to change the color of a layer?

    10
    0 Szavazatok
    10 Hozzászólások
    699 Megtekintések
    thomthomT
    @xrok1 said: its to bad there isn't something like a macro recorder in SU where you can perform an action, then just check the code it created. Wouldn't help when there's no API for the action. Materials and Layers are sorely missing methods.
  • Catching the ready event for webdialogs on Mac?

    6
    0 Szavazatok
    6 Hozzászólások
    293 Megtekintések
    thomthomT
    Thanks jeff. It didn't help for this, but it'll be useful for other stuff. I found the core of the problem. Well, there was two issues. On PC the webpage is created when you call .show. On Mac it seems to be called immediately as you add HTML to the Webdialog class. So in my case, the ready event was triggered when the ruby loaded and therefor was sent to the console while it was closed. My other problem was in the difference in how files where read between PC and Mac, I got some trailing whitespace on Mac while reading a file line by line. That caused a bug which mangled the JSON string I sent to the webdialog. On the Mac any JS error messages was suppressed so I got no feedback on this. (Unexpected as on PC I get a popup warning.) Now it all seems to work. Though - I'm not too happy that the Mac loads the HTML document when I create the Webdialog class. I'd like to behave as on Mac. Seems that I have a few things to report to the bugtracker tomorrow...
  • Additions to the sample Box.rb

    4
    0 Szavazatok
    4 Hozzászólások
    289 Megtekintések
    K
    As I understand SU when I leave layer0 as the active layer then all of the components details or drawing information remains on layer0 and moving it to a new layer via the "I" information form only affects the visibility of the component. So that is what I want to do the same as if I selected the component pressed "I" and changed the layer to new layer I just created. I hesitated to use the term move the component to the new layer as I understand that is not really what happens. My layer management plan for woodworking projects is such that each part is made a component and has a Assembly layer (A01TableTop) and a part layer for the dimensioned drawing (P01TableTop). I also have an Assembly Scene that makes all the parts in the assembled position visible. My box.rb now creates these layers as hidden so they don't show up in scenes where they are not wanted. In a perfect world for me box.rb would also: 1.Place the first instance of the component on the new named assy layer. 2.Place a copy or second instance of the component on the new named part layer. 3.Add the assembly layer to the Assembly Scene. Thanks Keith
  • WebDialogs and JavaScript events

    2
    0 Szavazatok
    2 Hozzászólások
    174 Megtekintések
    thomthomT
    I'm using jQuery to take care of such things.
  • Rotate Current View 2D (As though Z were out of the screen)

    18
    0 Szavazatok
    18 Hozzászólások
    2k Megtekintések
    R
    @unknownuser said: can you post again in this thread when the update goes up? that's probably the easiest way for me to keep track. thanks so much Will do.
  • 'Error Loading File progressbar.rb' problem

    5
    0 Szavazatok
    5 Hozzászólások
    1k Megtekintések
    I
    Thank you Chris
  • SelectionObserver and get attributes....

    3
    0 Szavazatok
    3 Hozzászólások
    284 Megtekintések
    J
    Hi Pauline, the attributes for a Dynamic Component are in the the "dynamic_attributes" attribute_dictionary. # Check "dynamic_attributes" dictionary for a Dynamic Component identity = selected[0].get_attribute("dynamic_attributes", "identity") # the Definition may have the attribute, so... if identity.nil? identity = selected.definition.get_attribute("dynamic_attributes", "identity") end if identity.nil? # there is not attribute named "identity" else # Yes, we found "identity" end
  • Script request -- drop to touch

    11
    0 Szavazatok
    11 Hozzászólások
    1k Megtekintések
    pilouP
    About Sketchyphysics A little trick if you want that your objets are still straight fall down at the end Just put 2 big boxes (one in front of, one behind) so objects are jamed in! [image: uixN_trick.jpg] About undrop just copy/past that in the Web console Select yours groups and press "Eval" Change z = z + 100.cm as you want (for copy all Code follow click blue "Select All" model = Sketchup.active_model model.start_operation("Move in Z") entities = model.entities selection = model.selection zeds=[] index=0 sorted_groups=[] groups=[];selection.each{|entity|groups.push(entity) if entity.kind_of?(Sketchup;;Group)} groups.each{|group|zeds.push([group.bounds.min.z, index]) index+=1 } zeds.sort! zeds.each{|z|sorted_groups.push(groups[z[1]]) } ### sorted_groups is now groups sorted by z z = 0.0 sorted_groups.each do |e| # update! # Now we process the groups t = Geom;;Transformation.new(Geom;;Point3d.new(0,0,z)) # Apply the transformation e.transform!(t) z = z + 100.cm end model.commit_operation return nil

Advertisement