🚨 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
  • Help plugin Modelur

    7
    0 Szavazatok
    7 Hozzászólások
    331 Megtekintések
    F
    thanks i have firefox, is correct explorer 7 for win e safari 3.0 or later for mac. Now i try on mac. Flyman
  • WebDialog show_modal on Mac

    3
    0 Szavazatok
    3 Hozzászólások
    305 Megtekintések
    J
    Thanks Whaat.
  • Component names

    11
    0 Szavazatok
    11 Hozzászólások
    539 Megtekintések
    chrisglasierC
    @chrisglasier said: I'll get back on it tomorrow. In the meantime thanks for your help. Chris Here's the result: # Lists components and groups (with hidden status) in a scene @dlg.add_action_callback("findComponents") {|d, p| model = Sketchup.active_model entities = model.active_entities a = 0 array = [] entities.each do |entity| if entity.class == Sketchup;;Group || entity.class == Sketchup;;ComponentInstance if entity.layer.visible? array[a] = [] if entity.class == Sketchup;;ComponentInstance array[a][0] = entity.definition.name end if entity.class == Sketchup;;Group array[a][0] = entity.name end array[a][1] = entity.hidden? array[a] = array[a].join(",") a+=1 end #if class end # if visible end #loop array = array.join(";") cmd = "receiveComponents('#{array}');" @dlg.execute_script (cmd) } [image: jrTi_screenMachine04.jpg] Tally ho! Chris
  • Universal Camera

    2
    0 Szavazatok
    2 Hozzászólások
    333 Megtekintések
    Chris FullmerC
    Yup, that is the film and stage plugin. http://sketchup.google.com/download/previousplugins.html Down about 1/2 the page under "Functionality Enhancement" Once you install it, look for it under "Camera" and choose "Add Camera" or one of the other options, Chris
  • Refresh and stop inside a long routine

    7
    0 Szavazatok
    7 Hozzászólások
    492 Megtekintések
    TIGT
    Jim's idea of sub-setting works to an extent. See my Roof.rb - it asks for details, makes the roof's form, then displays it with default materials and then asks for materials in a dialog and redisplays it with the materials. It is the user input that causes the pause and the screen to refresh. Using model.start_operation ... model.commit_operation with your clac's might help but it could mean multiple undo's ?
  • Scene maker

    4
    0 Szavazatok
    4 Hozzászólások
    675 Megtekintések
    chrisglasierC
    @chrisglasier said: I feel quite despondent that I continue to fail to explain namesets adequately but I will soldier on with a good old British stiff upper lip! Chris A couple of members told me privately that taking a look at "Operative content" helped. Thanks ... Chris
  • Are there any .3ds exporters free or paid?

    11
    0 Szavazatok
    11 Hozzászólások
    652 Megtekintések
    P
    I have found a very good exporter to .lwo: http://www.flay.com/GetDetail.cfm?ID=2362 In fact, I have finally exported to Blender my more complex model. Of course, no textures, it's a work you must do manually later. But it's the best free solution I have ever seen
  • Why can not draw the geometric by the ruby script?

    3
    0 Szavazatok
    3 Hozzászólások
    284 Megtekintések
    Chris FullmerC
    I'm not sure, it worked for me in both 6 and 7. Are you getting any errors in the ruby console? Chris
  • Editing SU menu

    3
    0 Szavazatok
    3 Hozzászólások
    266 Megtekintések
    honoluludesktopH
    Thanks, Chris. Now I don't feel too bad about not being able to find it in the API.
  • . color method

    5
    0 Szavazatok
    5 Hozzászólások
    318 Megtekintések
    TIGT
    For a color it's always = 255 [100% opaque]... there is a color.alpha= method but it's never ever worked, you must set alpha [transparency] for a material itself not material.color e.g. material.alpha=0.4 for 40% opacity will work but the material.color.alpha still reports 255 [100%], if you try to change it, it just does nothing ! So to recap - the fourth item in a SUp material.color array is its alpha [r,g,b,a] but it's not used ! The alpha of the material itself works as a 0 to 1.0, equivalent to % setting of opacity... http://code.google.com/apis/sketchup/docs/ourdoc/color.html
  • [Bug] Groups in ComponentInstances made unique

    3
    0 Szavazatok
    3 Hozzászólások
    276 Megtekintések
    R
    thnx for the workaround, haven't tried it yet tho.... but gj
  • I have a trouble in the code,and need help.thanks!

    3
    0 Szavazatok
    3 Hozzászólások
    233 Megtekintések
    W
    Thank you very much!It is greate help to me!
  • Can it be to achieve?

    8
    0 Szavazatok
    8 Hozzászólások
    468 Megtekintések
    R
    @tig said: You can also do it without Ruby... Try this way... In the model select the component instances you want to be replaced - either by manually picking them (in which case they can even be a mixture of several types) OR by using the Component Browser (model-tab) and then right-clicking over the definition's icon that you want to have selected and pick 'Select Instances' - that way all of its active instances are selected. Now use the Component Browser - either in the model-tab to use components that are already within the model, or from any other 'external' location for components that are currently not yet loaded into the project - again you right-click over the definition's icon that you want 'to add' and pick 'Replace Selected'. Now the components you selected have been replaced by the component you wanted... It's possible to script it BUT it might be as easy to do it this way... There are already several component swapping scripts too... It can be done using the Component Browser, but when you have lots of components, it can be easier to select a desired component on-screen rather than hunting through the browser. Though I wrote ApplyTo before the Component Browser offered that functionality, it retains its relevance for this reason.
  • Automating export of scenes

    6
    0 Szavazatok
    6 Hozzászólások
    611 Megtekintések
    chrisglasierC
    @rickw said: SceneExporter and SceneExporterPro will do this as well. Very thoughtful and generous, thanks. You may be interested in seeing how this relates to my templates query Chris
  • Is it possible to offset a 3d spline?

    19
    0 Szavazatok
    19 Hozzászólások
    4k Megtekintések
    R
    You could try offset.rb While I wrote it to provide standard "flat" offset capability, I noticed it does perform 3d offsets. It may not be exactly what you want, but it could form the basis for a 3d offset.
  • Thanks to all Ruby developers, and more...

    14
    0 Szavazatok
    14 Hozzászólások
    1k Megtekintések
    M
    Good to see that it have been helpfull ! The automatic translation is a really good idea (in fact, I've never really try this kind of tools before... ). In fact, after some test, the google translation is better, and there are not that much big mistakes or nonsense (just when I'm going off topic...). http://translate.google.com/translate?js=n&prev=_t&hl=fr&ie=UTF-8&u=www.wip-archi.com&sl=auto&tl=en&history_state0= For instance, I've quickly check the Vray lessons, and it works quite well... give it a try...
  • Is it possible to do this...

    3
    0 Szavazatok
    3 Hozzászólások
    335 Megtekintések
    S
    thanx...stupid me
  • Making a SketchUp tool - incorporating the mouse & keyboard

    55
    0 Szavazatok
    55 Hozzászólások
    4k Megtekintések
    Chris FullmerC
    Here is your code how I tweaked it. I think all I did was move the if @thing == 0 to the bottom and then changed all the sets back to arrays and then made the @vert array uniq!. SO look this over and compare it to yours. See if that helps. require "sketchup.rb" class Pinchmover def activate @model = Sketchup.active_model @ent = @model.entities @view = @model.active_view @slct = @model.selection @slct.clear @vect = [] @verts = [] @dvert = [] @thing = 0 end def onLButtonUp(flags, x, y, view) if @thing == 1 vec=[] ip2 = view.inputpoint x,y pt3 = ip2.position pt4 = Geom;;Point3d.new pt3 @cpoint2 = @ent.add_cpoint pt4 prompts = ["Radius="] defaults = [ 0.0.to_l] list = [""] results = UI.inputbox prompts, defaults, list, "Please input desired radius." @rad= results[0].to_l @ent.each do |e| if e.typename == "Edge" @verts << e.start @verts << e.end end end @verts.uniq! @verts.each do |v| dist = v.position.distance @cpoint.position if dist < @rad @dvert << v end end @dvert.each do |d| # Doesn't seem to work. vec = @cpoint.position.vector_to @cpoint2.position @vect << vec end Sketchup.active_model.entities.transform_by_vectors @dvert, @vect @thing = 2 end if @thing == 0 ip1 = view.inputpoint x,y pt1 = ip1.position pt2 = Geom;;Point3d.new pt1 @cpoint = @ent.add_cpoint pt2 @thing = 1 end end end Sketchup.active_model.select_tool Pinchmover.new Chris
  • [Research] Area Report

    9
    0 Szavazatok
    9 Hozzászólások
    665 Megtekintések
    thomthomT
    I've got a prototype. But I'm not sure if I'll go forward with this project after seeing this: http://www.sketchucation.com/forums/scf/viewtopic.php?f=80&t=19084 Looks very promising.
  • Pro or free version

    9
    0 Szavazatok
    9 Hozzászólások
    647 Megtekintések
    Al HartA
    Thanks TT. After seeing if it worked, I was going to have someone try to type it in in SU6 to see what happened. Al

Advertisement