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
  • Components colors/materials retrieval

    5
    0 Votes
    5 Posts
    988 Views
    Didier BurD
    Yes, I've studied it extensively... But what I didn't noticed before is that when you have a component within another component and when you paint this sub-component globally (by default) you thus modify its definition. That's to say you can't have this sub-component colored with 2 different colors in to separate "parents". I hope that I'm clear, anyway this makes my job a lot easier I must extract an Excel sheet with a global list of top-level furniture components (kitchen cabinets, shelves...), and a detailed list of the components of level 1 whith their colors/materials, themselves made of various pieces of level 2 of various colors/materials. Pfff, furniture manufacturers are complicated people sometimes... P.S. Typo: Bonne chance (thanks)
  • To TIG:random delete

    9
    0 Votes
    9 Posts
    1k Views
    TIGT
    I did upload the correct file... BUT the weirdness of Vista is that it segregates 'compatibility files' when they're inside the Programs Files Folder. I based RandomSelect on RandomDelete. I copied it, renamed it and changed its contents - and when I used it it read the right one and runs fine !!! BUT for some stupid reason Vista uploads the initial unedited copy - although it has the right 'name'... After some efforts I have fixed it and I have now corrected the error in the Depository... http://www.sketchucation.com/forums/scf/viewtopic.php?p=44671#p44671 The old version needs deleting but I can't do it since after a day or so the posts seem to be locked... Can a Mod please fix. EDIT: As of this edit the wrong file/post is gone. Anyone who downloaded the duff version (~24 ?) please accept my apologies, and go and get the corrected one... More haste, less speed...
  • Skin.rb > Clean Selection ?

    2
    0 Votes
    2 Posts
    646 Views
    J
    I think it removes unused lines from the faces in the current selection.
  • Ruby script execution

    3
    0 Votes
    3 Posts
    802 Views
    J
    TBD, any posibility to let sub.exe use stdin and stdout, instead of needing to save an intermediate file?
  • Subcomponents of subcomponents

    2
    0 Votes
    2 Posts
    482 Views
    Didier BurD
    Hi, D/L TIG's Componentsreporter+ script, there are some good tricks in there
  • Getting the file of a component

    6
    0 Votes
    6 Posts
    1k Views
    TIGT
    @rubine said: do you see a chance to rebuild the "create component" with ruby? i.e. writing your own "create component" method (creating a ComponentDefinition) You can easily make and place components with ruby methods, such as. Definitionlist.add("componentdefinitionname") ComponentDefinition.entities Group.entities Group.to_component entities have lots of 'add' methods: http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-Entities.html#add_instance You can't 'save_as' components in current Ruby - but you can do it manually. I've discovered that in the SDK there's a kind of ...Group.SaveAs() method that would allow us to write something like a dll or a socket that could then access that function. In a script you'd have to say something like: require 'GroupExporter.so' ... GroupExporter.new(group,filepath) ... This would then save a specified group to a .skp file at a specified name/location. These kinds of variables can be got/set in earlier bits of Ruby coding... To get it to export a Component all we'd need to do is make a temporary group, that's then named after the component-definition and even with a copy of its description if any (that way the final exporter component matches the original in the model...). Then to that group's entities we add an instance of the component (and explode it inside the group?). We then use GroupExporter.new(group,filepath) and finally erase the group to tidy up. If we want it done 'silently' we can specify the filepath - say as the model's folder_path/group_name.skp - or we could prompt for a component name and/or location... All I need now is someone who can make this dll/so with the SDK - my C++ is too poor to do it...
  • Trouble With Ruby

    8
    0 Votes
    8 Posts
    1k Views
    Dave RD
    Thank you. That worked. Cheers, Dave
  • Looking for onscreen time & date script

    3
    0 Votes
    3 Posts
    767 Views
    J
    Thanks Dave, that's the one! I've just bought it! Thanks to TBD as well!
  • Using add_3d_text

    15
    0 Votes
    15 Posts
    2k Views
    G
    Thanks TIG, I'll apply your suggestions and evaluate the results. Greg
  • Components

    6
    0 Votes
    6 Posts
    1k Views
    R
    if my hierarchy of components has 3 levels, is it possible to get the hierarchy of all the components (so that one can see of which components one component consists)?
  • Load file

    4
    0 Votes
    4 Posts
    1k Views
    R
    is there also a possibility to store components automatically in a folder (as an .skp file)?
  • What is needed to script?

    4
    0 Votes
    4 Posts
    2k Views
    Alan FraserA
    Useful link for the more advanced. http://notepad-plus.sourceforge.net/uk/site.htm
  • Extrude lines along path

    11
    0 Votes
    11 Posts
    6k Views
    pilouP
    http://www.crai.archi.fr/RubyLibraryDepot/Ruby/EM/ExtrudeAlongPath.rb ? Not exactly but...
  • Array and center point....

    9
    0 Votes
    9 Posts
    2k Views
    G
    Working OK at the moment - images attached. Bob [image: ScreenHunter_01_resize.jpg] [image: ScreenHunter_02_resize.jpg]
  • Clipping When drawing from a Tool

    10
    0 Votes
    10 Posts
    1k Views
    T
    The thing with a Bounding Box is - it's virtual. You don't have to have any geometry to create and populate a bounding box.
  • Creating a material from an existing one

    8
    0 Votes
    8 Posts
    2k Views
    fredo6F
    @jim said: I agree about needing to read or write on the disk in order to accomplish this; however... if you are going to be reading and writing files, why not copy the .skm, load it, and make the adjustments? Either way, it looks as if the best you are going to do is a clunky work-around. Well, this is to create programmatically a semi-transparent material from an existing material. This is the only way to build a macro that would show part of the model in Xray (as the View mode of Sketchup applies to the whole model). At the moment, I can do it with color of material, but cannot get the textures to be Xray'ed. See discussion thread in the forum at http://www.sketchucation.com/forums/scf/viewtopic.php?f=57&t=6638 and also in the French section (http://www.sketchucation.com/forums/scf/viewtopic.php?f=51&t=6589&start=0) [image: model from Claire]
  • LanguageHandler question

    3
    0 Votes
    3 Posts
    695 Views
    Didier BurD
    Yep, that's it ! @unknownuser said: the reason it fails, it because it is looking for: "=", and this line has: " = " Thanks Al. I was thinking that the strip method didn't care of spaces, and it does in fact. Since components.strings is the stock file that is installed with the french package of GSU: to SU Team
  • Web Dialog Help and Debugging Thread

    19
    0 Votes
    19 Posts
    4k Views
    L
    @unknownuser said: because WebDialogs are not using the default browser installed on the user machine, but instead a Internet Explorer shell (the same that you see when viewing .chm files for example) on Windows version. there is no option to use other browser engine for displaying WebDialogs. btw, why do you need another one ? Just another point on this issue since this was the only thread I could find that was related somewhat to my problem. I was using the get models button to access 3d warehouse for the longest time, no prob. Then one day the model images would not appear in the popup browser and I couldn't download them to my sketchup model. I tried restarting SU, rebooting the computer and eating some chicken soup...all to no avail. Since I use FF as my default browser I assumed that SU was using it in some weird form as the get model popup. I now know that it uses IE, and was able to solve the problem by locating my deleted version of IE and purging all the cookies and caches. Too bad we can't choose to have FF used as the default dialog. Would be less confusing in certain instances. cheers...
  • How get the Group object contains the particular entity

    2
    0 Votes
    2 Posts
    986 Views
    TIGT
    @wikii said: Hi all,I want to get the Group object that contains the selected objects. such as: > First I select a Group > Sketchup.active_model.selection[0] => <Sketchup;;Group;0xb79eb20> > I open it ,and ,select an edge > Sketchup.active_model.selection[0] => <Sketchup;;Edge;0xb79ea48> > Now I want to get the Group object contains '<Sketchup;;Edge;0xb79ea48>' ,that should be '<Sketchup;;Group;0xb79eb20>'.Using 'parent' methods,it can't work at all. > Sketchup.active_model.selection[0].parent => #<Sketchup;;ComponentDefinition;0xb79e958> > Please help me. So far so good, you have the ComponentDefinintion. Let's say you set it to 'cdef', then cdef.instances[0] will return the group you want - there's only one instance of a group's component-definition - I know it's convoluted !!! NOW you have the parent of the edge... = the group ?
  • Xray ruby component?

    7
    0 Votes
    7 Posts
    1k Views
    fredo6F
    Wireframe is even simpler, as you just hide / show the faces The big problem for Xray, is that I don't find any way to create a material from an existing one, or to assign the new one the same texture as the old one, especially with SU v6, as the JPG are now embedded in SKM files. So the macro works without texture at the moment. Does anyone see a solution?

Advertisement