sketchucation logo sketchucation
    • Login
    1. Home
    2. Whaat
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 86
    • Posts 821
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: [SKM Bug]Material attributes within SKM files

      Tomasz,

      Thanks for looking into this (although I know if this problem can be solved, it will benefit both of us πŸ˜‰ ). I have given up on this at the moment although if there is an easy solution, that would be great!
      Right now, material properties for SkIndigo can be saved as IGM files which can be loaded back into SketchUp fairly seamlessly. This file format also has the advantage that it can be imported by other programs like 3DSmax.

      I still don't understand how Jim can get the attributes to save but we can't. Hope you can help us with this one, Jim! Thanks!

      posted in Developers' Forum
      W
      Whaat
    • RE: Can't create a scrollable web dialog. Bug?

      @unknownuser said:

      I have not had that bug, but I don't run Vista or IE 7 either.

      The scrolling should indicate that a scrollbar will be shown IF NEEDED. Does resizing the window to make it smaller cause a scrollbar to show up? Do you have enough data elements in your dialog to cause it to not fit within the specified area?

      Todd

      Yes, there is no question that scrollbars are necessary. Data does not fit within the dialogs. Resizing does not make a difference. Maybe it's an IE 7 problem.

      posted in Developers' Forum
      W
      Whaat
    • Can't create a scrollable web dialog. Bug?

      Hey Ruby Masters....
      I can't for the life of me get my web dialogs to scroll. Is this a bug? Can anyone get this to work? I am using Windows Vista Home Premium and IE7.

      dlg=UI;;WebDialog.new("Title", true,"RegKey", 800, 800, 100, 50, true)
      

      The second parameter is supposed to set the dialog to be scrollable.
      Has anyone else had this problem?
      Thanks.

      posted in Developers' Forum
      W
      Whaat
    • RE: How to check if a program is running with Ruby?

      Thanks, but I get this error message when SketchUp loads:

      Error Loading File ProcessTest.rb
      No such file to load -- win32ole
      

      It would be great if this would work without the need for another file.

      posted in Developers' Forum
      W
      Whaat
    • How to check if a program is running with Ruby?

      I am pretty sure this can be done. I have done some research but have not found what I am looking for yet.

      I just need to know if a given program is running.

      Something like this:

      if ("indigo.exe").is_running?
      
      do something
      
      end
      

      Maybe it has to be done with a system call...but which call?

      posted in Developers' Forum
      W
      Whaat
    • RE: Massmaterialimportant.rb woes

      This may have nothing to do with it but I have been burned using this type of code before:

      imgname= image.split(".")[0..-2].join(".") ### removes .jpg etc from end
      

      Maybe he is using weird filenames that aren't properly handled by this code. (eg. "my.texture.jpeg")

      Can you post the names of the files you are trying to import?

      posted in Developers' Forum
      W
      Whaat
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      Did you do the layout by hand-editing the HTML files or did you have layout software to drag and drop, cut and paste, edit colors, etc.?

      Also, did you find any useful online resources for learning HTML and javascript or did you just try and figure it all out on your own?

      Thanks for sharing this...

      posted in Developers' Forum
      W
      Whaat
    • RE: Material with coloured or distorted texture

      @unknownuser said:

      1. My solution to the first is to check texture.average_color and compare it with the colour of the material, if != then coloured=true? Am I thinking right?.

      2. .. I have no solution.. comparing UVs using uv_at and using UVHelper? if == then distorted=false ?

      Hey Tomasz,
      I would guess that you are right about both 1 and 2. I haven't tried it, but the logic seems right.
      I've got a Ruby function written called "Explode Distorted Texture". It works pretty well. It exports the distorted texture with the texture writer (correcting the perspective), creates a new material with that texture, and then applies it back to the original face. The only downside is that it increases the number of materials in your model. However, in many cases, you only have to explode the distorted texture for one face and then you can use the new texture on any faces that face the same direction (e.g. explode the texture for a wall, and apply the same texture to a framed painting on the wall using the ink dropper).

      Whaat

      posted in Developers' Forum
      W
      Whaat
    • RE: UI.openURL(executable + params)

      @unknownuser said:

      'Dos' window is visible in the background so it is not clean solution.

      I think if you use the command "start" before the name of the executable, the dos window will disappear after executing the batch file.

      start kerkythea.exe script.kst

      Whaat

      posted in Developers' Forum
      W
      Whaat
    • RE: Paul Russams church (again :))

      @kwistenbiebel said:

      I like the way you simulated that glass. A bitmap texture as emitter?
      I should try that.

      Actually, it is sunlight that is penetrating the window. The window materials are a simple diffuse material with the SketchUp opacity set to 65.

      Using the texture as an emitter probably would have rendered faster and looked almost identical, though. Never thought to do it that way πŸ˜„

      I would have commented on your image, but my office always blocks your links 😠 . Nice image! You are a pro when it comes to composition! I see some strange uv errors. I wonder if there are some issues there with the Fry exporter?

      posted in Gallery
      W
      Whaat
    • RE: Paul Russams church (again :))

      Here's one I did a few weeks ago with Indigo. I added the crucifix from the 3D warehouse.

      http://www.indigorenderer.com/joomla/forum/files/final_small_193.jpg

      This is shrunk down (and cropped) from the 1600x900 version which can be found here:
      http://www.indigorenderer.com/joomla/index.php?option=com_gallery2&Itemid=26&g2_itemId=21748

      posted in Gallery
      W
      Whaat
    • RE: Watermarks with Ruby?

      @unknownuser said:

      No can do. The good news is that it's on the slate for V7.

      Todd

      Thanks a lot for looking into this Todd.

      posted in Developers' Forum
      W
      Whaat
    • RE: Watermarks with Ruby?

      Kris,
      I already said that I know how add a watermark using the SU interface. I am trying to do it using Ruby.

      posted in Developers' Forum
      W
      Whaat
    • RE: Watermarks with Ruby?

      @krisidious said:

      what are you trying to accomplish? maybe we can help.

      I am experimenting with different methods of viewing an HDRI background within SU. One method is to render just the HDRI background with no geometry using the current SU camera view. Next, import the rendered image as a watermark. This would allow the user to preview an HDRI image in SU prior to doing a final render. This can be done manually but I am wondering if this process can be automated by a Ruby script. Rendering the HDRI background can be done easily. However, I am not sure if I can automatically load a render to use as a watermark.

      posted in Developers' Forum
      W
      Whaat
    • Watermarks with Ruby?

      Is there any way to load a watermark with a ruby script? So far, I have not found any way to do it. None of the methods in the "Style" class look very useful.

      posted in Developers' Forum
      W
      Whaat
    • RE: How to test if user is currently using Photomatch?

      Thanks, Rick, but that's not really what I am looking for. I'm not trying to test whether the user is editing their photomatch (i.e. adjusting vanishing points, origin, etc.). I just want to know if the user has selected a photomatch scene tab and has not changed the camera view (photo background is still in view). The active tool could be anything (select, linetool, pushpull, etc, I don't care).

      In other words, I just want to test if the photomatch background is still in view. There doesn't seem to be anything in the RenderingOptions, Page, or Camera classes to help me here.

      posted in Developers' Forum
      W
      Whaat
    • How to test if user is currently using Photomatch?

      I cannot find an explicit method to test if a user's view is currently a "Photomatched" view. Right now this is what I am considering:

      
      pages=Sketchup.active_model.pages  
      page = pages.selected_page #gets the currently selected page
      page_label=page.label
      
      if page_label.slice("(2D)")  #test if (2D) is in the page label
      cam1=page.camera
      cam2=Sketchup.active_model.active_view.camera 
      #Do a series of tests to see if cam1==cam2 (eye,target,focal length,etc.)
      #If the two cameras have all the same properties, user is in photomatch mode
      end
      

      The only potential problem I see with this code is if there is any other way for the characters (2D) to be inserted into the page label (besides manually inserting them). Is there any SketchUp function (other than photomatch) that will create a page with "(2D)" in the label?

      If anyone knows of a better methods to test for this, please suggest....Thanks!

      Whaat

      posted in Developers' Forum
      W
      Whaat
    • SkIndigo 0.8 beta2 Released - Includes some useful tools

      I have released an updated version of my Sketchup to Indigo 0.8 exporter. You can get it here: http://www.indigorenderer.com/joomla/forum/viewtopic.php?t=2215
      New features include multiple UV sets, dummy (proxy) components, and a tool for working with distorted textures (eg. projected from photomatch)

      There is a function included that allows you to switch all entities assigned to one material to a different material. I imagine this would be useful for some people. Maybe this function exists in another Ruby that I am not aware of.

      There is also a function that will export a distorted texture, create a new material with the texture (correcting the perspective), and then apply the new material back to the selected face. This function is useful if you are planning to export a model with distorted textures to a rendering package (Indigo, Kerkythea, etc.)

      These features are accessed through context menus. There are still some bugs with the script (especially with loading saved UV sets) so be warned. Hopefully I can fix all the bugs someday.

      Whaat

      posted in Extensions & Applications Discussions extensions
      W
      Whaat
    • RE: Texture exporting from SU

      Here's the code that I have been using in SkIndigo. It works pretty well for exporting all textures in your model (not just the ones in use). Of course, you will want to modify the output path.

      
      def export_textures
      
      
      tw=Sketchup.create_texture_writer
      model = Sketchup.active_model
      entities = model.active_entities
      
      helper_group=entities.add_group
      materials=model.materials
      
      for mat in materials
      	if (mat.respond_to?(;texture) and mat.texture !=nil)
      		helper_group.material=mat
      		tw.load(helper_group)
      	end
      
      end
      
      entities.erase_entities helper_group
      
      status=tw.write_all $g_su2in_path_textures+"\\"+$g_su2in_textures_prefix+$g_su2in_model_name,false
      tw=nil
      
      return status
      
      end
      

      Is this what you were looking for?
      Whaat

      posted in Developers' Forum
      W
      Whaat
    • RE: SketchyPhysics Alpha

      I like this script so much, I thought I'd do a tribute...Indigo style!

      http://www.sketchucation.com/forums/scf/sas/Ruby/im1184173089.jpg

      Whaat

      posted in SketchyPhysics
      W
      Whaat
    • 1
    • 2
    • 38
    • 39
    • 40
    • 41
    • 42
    • 41 / 42