Mac User? | Join the Rayscaper Beta for Mac Learn More

Subcategories

  • No decscription available

    20 Topics
    462 Posts
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • How to assign a material to all selected objects (and faces)

    11
    0 Votes
    11 Posts
    7k Views
    thomthomT
    @runnerpack said: Also, some way of showing which material is selected would be handy... (but not in a floating window for obvious reasons ) I could draw the name of the material to the viewport, as well as a sample of the colour (but not texture).
  • How to avoid multiple instances of WebDialog?

    4
    0 Votes
    4 Posts
    351 Views
    chrisglasierC
    @thomthom said: > module MyDialog > > # Use a module variable to store one reference to your dialog > @dialog = UI;;WebDialog.new("Show Google.com", true, > "ShowGoogleDotCom", 739, 641, 150, 150, true); > @dialog.set_url "http://www.google.com" > > def self.show_dialog > # Now you can use that variable to check if it's already visible or not > if @dialog.visible? > @dialog.show > else > @dialog.bring_to_front > end > end > > end > Very good. I know not for me but thanks Chris
  • Export as .JMS?

    4
    0 Votes
    4 Posts
    546 Views
    J
    Sure it's possible. The Ruby API provides very good access to all of the model's geometry and most of it's other data.
  • I need help!

    3
    0 Votes
    3 Posts
    402 Views
    fredo6F
    @birdair said: b) Why some curves lines (ellipses) looks faceted... can fix that little problem... how? You can always take your curve and convert it to FSpline or Cubic Bezier to get more intermediate points (you need first to convert it to a Polyline). But I am not sure it can give always the same best results as to think of the number of segments in the first place when you create the curve, as RunnerPack says. Fredo
  • Fillet/Chamfer plugin

    5
    0 Votes
    5 Posts
    30k Views
    TIGT
    Find my 2D Tools it has one... '2D Fillet' - it will works on 2D edge junctions, in 2D in 3D... If you want a 3D arris 'rounder' see Fredo's Round_Edge/Corner tools...
  • Ruby for continuous texturing on curved faces?

    3
    0 Votes
    3 Posts
    363 Views
    N
    yes... i'm doing it manually now - but i have more than 1200 faces! - not funny... better texturing is really badly needed - i don't get it why su7 has got no new tools for this. if google can't do multicore or high poly why not improved texturing tools?!? should be useful for google earth too...
  • Select components by name using wildcards ?

    4
    0 Votes
    4 Posts
    329 Views
    J
    how simple can it be - I have used SU since ver. 5.0 but I have never used outliner before Thanks thomthom
  • Component instance name. req help

    3
    0 Votes
    3 Posts
    331 Views
    J
    I will add that the Definition name is different than the Instance name, but should work the same. ins = entities.add_instance(cdef, transf) name = ins.definition.name name.gsub!(/#/, '/') ins.definition.name = name
  • Setting material hue-shift or colourize

    3
    0 Votes
    3 Posts
    357 Views
    thomthomT
    Ok, so I'm haven't missed any methods that actually do this. One more for the feature requests then.
  • Where to Start with Ruby?

    18
    0 Votes
    18 Posts
    3k Views
    G
    Read Chris Pines Tutorial and put this cheat sheet together for myself. ==== Ruby for VB Programmers ==== --- Variables --- All variables are variant objects. Variables do not have to be declared before use. Variables are not formally declared. (No Dim statement). As variants they may be re-assigned any data type at any time. Variables that are assigned strings or numbers have methods. (As in VB.NET). Variables that are spelled the same but with different letter case ARE BY DEFINITION different variables. Variables must be assigned names beginning with a lower case letter Ruby --- VB Nil ---- Nothing --- Conversion methods --- to_i = String to integer to_f = String to float to_s = Integer or float to string, Concantinates elements when used with string arrays. --- Strings Manipulation --- Literal Strings are denoted by single quote ( ' ) Backslash is an escape character: ' results in single quote. (\=) Double quoted text is a more flexible form of string defintion. (Inserting and formating) Ruby --- VB ------ & ------------------------ Concantination ------ Str(<string>, <count>) --- Repeat Char/String ------ ' ------------------------ Comments --- Operators and Comparison Operators --- Ruby --- VB ** ----- ^ ----- Exponent % ------ Mod ----- Modulus == ----- = ------ (Comparison) Equivalent != ----- <> ----- (Comparison) Not Equivalent --- Bracket Characters --- denote an array. Curly Brackets { } denote a hash Parenthisis ( ) used in a formula or logical statement work as they should but are optional for methods --- Hashes / Dictionary --- Define as you would an array but with curly brackets and a key. myList = {}; myList{'Bob Mitchell'} = '54823-11'; myList{'Phil Brown'} = '23872-08'; #Etc... --- Arrays --- Arrays are denoted by square brackets rather than parenthisis Arrays are zero based. Arrays elements do not have to be all the same type. Arrays as objects also have methods. (Push, Pop,Last, Length, Sort, Etc...) --- Loops --- Arrays have an interator method: While Loop myArray.Each do | <variable> | ... End While <Statement True> puts <variable> puts <variable> end --- User Methods --- Last variable or Return <variable> Returns value Ruby ----- VB Def( ) --- Sub( ) or Function( ) --- Classes --- Any class may be extended including Ruby's supplied classes. The new method (Implied) is required for object instantiation. An Initialize method may be declared inside a class. The Initialize method can take user parameters. these parameters are required after the <Class>.new method. Properties are defined by the use of the @prefix on variable names. local variables are private to class Private is a Class keyword in Ruby that defines all methods below it as internal to the class. Ruby --- VB Time --- Date
  • How to save settings? Req. help, rubyscript.

    5
    0 Votes
    5 Posts
    487 Views
    TIGT
    @newone said: "...of a .INI file or registry (within the Software > @Last Software > SketchUp section)." This is what I read in documentation. I don't understand really where that .INI file has to be. Or can I set a path? You don't need to worry about 'where it is'... just write the details as set out in the guide and it's saved/read from the right place in the PC's Registry (or a Mac's ini)...
  • Frameset for WebDialog

    5
    0 Votes
    5 Posts
    390 Views
    M
    @chris fullmer said: yes. Headline, today's NY Post: Previous Post Pockets Prestigious Polonius Prize! brevity == wit.soul
  • WebDialog Question

    5
    0 Votes
    5 Posts
    396 Views
    M
    @jhoutman said: I found the Webdialog rather obtuse ... Spoken like a diplomat. Some might put that more strongly.
  • REQ - Toolbar Manager

    8
    0 Votes
    8 Posts
    1k Views
    P
    I saw some website http://www.sketchupbbs.com/forumdisplay.php?fid=327 Develop plugin "New SU tool 2010" [flash=450,370:2zfgo97c]http://www.youtube.com/v/_HAiAtvVTRw&color1=0x234900&color2=0xd4d4d4&feature=player_embedded&fs=1[/flash:2zfgo97c]
  • Growing/Shrinking Text and Checkboxes in MSIE WebDialogs

    2
    0 Votes
    2 Posts
    238 Views
    thomthomT
    IE doesn't play nice with pixel values. It refuses to scale the text then. It only scales relative units. The default font size of pretty much all browsers are 16px. So it's common to set the font-size of html to 62.5% - so that the base font size is 10px. Then you can use em values easier: 1.2em becomes 12px.
  • Soap Skin & Bubble sketchup 7 keeps crashing - using Mac

    12
    0 Votes
    12 Posts
    4k Views
    jeff hammondJ
    @burkhard said: For the Mac you'll find out that some troubles with Plugins depends on what path you choose. If HD/...is not working, I always try out the users/...path which contains also a Sketchup folder. i used to say this a lot around here but i haven't been posting in a while but.... sketchup actually does not have a plugin folder in the users/ path.. i challenge anyone to do a clean install of sketchup and find that folder. installing podium puts the folder there and that's when things start getting screwy.
  • Plugin template

    2
    0 Votes
    2 Posts
    359 Views
    Chris FullmerC
    I also have a simple template I use for my plugins. It is a little more tailored to my suite of plugins, but I have been meaning to put together a generic one like this. I think it looks great Alex. I have a few little things that I have been playing with that I'll try to get posted into this thread later today maybe. Chris
  • Animation export vs animation in SU

    4
    0 Votes
    4 Posts
    552 Views
    P
    CONFIRMED
  • Information in the dictionary = huge filesize

    9
    0 Votes
    9 Posts
    1k Views
    P
    i don't think there is a bug since i can easily read the data from the dictionary. I don't have a example at hand (since they are all way to big) But this is what is added to each entity : e.set_attribute 'libraryname', 'suid', variable (number) e.set_attribute 'libraryname', 'mat_or', name of the original material (text) when a face; e.set_attribute 'libraryname', 'matback_or', name of the original material (text) e.set_attribute 'libraryname', 'typestatus', name of a material (text)
  • Determine zoom level through API

    5
    0 Votes
    5 Posts
    526 Views
    T
    Thank you thomthom, that is exactly what I was looking for.

Advertisement