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

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
  • What's the difference.

    5
    0 Szavazatok
    5 Hozzászólások
    331 Megtekintések
    KrisidiousK
    so I take it I'm covered with Your cleanup tools... kool.
  • Get last image export settings?

    4
    0 Szavazatok
    4 Hozzászólások
    270 Megtekintések
    Dan RathbunD
    FYI... I have a bug issue logged that Sketchup::read_default() cannot return DWORD values. Basically the method assumes anything you want to read was written with Sketchup::write_default(), which inspects objects into evaluatable strings before storing them. So.. Sketchup::read_default() is stupid and always tries to run the stored values back through Ruby's eval() without Type checking. When a error occurs it seems the method's rescue block just returns nil. So you'll need to use the WIN32OLE class ("win32ole.so" file,) and the Windows Scripting Host interface to read registry values. See: [Plugin Library] Win32API and Win32OLE so files
  • Toggle Construction geometry?

    7
    0 Szavazatok
    7 Hozzászólások
    595 Megtekintések
    Dan RathbunD
    I note there are 7 other settings that are positive, and begin with the prefix "Display".. and one positive that begins with the prefix "Show"... The lack of convention is annoying.
  • Sketchup::load under different binding?

    7
    0 Szavazatok
    7 Hozzászólások
    455 Megtekintések
    Dan RathbunD
    @thomthom said: That seem to work perfectly! Excellent! 4 trys is the charm. Man, I love Ruby's flexibility!
  • Naming an entity

    4
    0 Szavazatok
    4 Hozzászólások
    1k Megtekintések
    S
    Thank you very much TIG for the prompt and in depth reply. There is a lot of info to digest and I will try it out. Thank you again.
  • Sharing variables between functions

    3
    0 Szavazatok
    3 Hozzászólások
    325 Megtekintések
    K
    amazing how easy things are sometimes. guess i have a long way to go thanks! D
  • JetBrain/RubyMine Support for SketchUp Ruby Class, Method an

    10
    0 Szavazatok
    10 Hozzászólások
    3k Megtekintések
    Dan RathbunD
    Probably will.. when I get back a Win7 notebook that needs to go back to Dell for a HD replacement & OS reimage.
  • Namespace question on noob level

    16
    0 Szavazatok
    16 Hozzászólások
    1k Megtekintések
    liquid98L
    Off topic: @unknownuser said: (1) The word useful has only 1 "L", by the way. thanx for your correction, the English language is not my mother language as you might have noticed.. /Off topic All code is safe now and my code works like a charm, so thanx for your help. And yes I SHALL read the book before I come here and ask questions like this..
  • Get points from a Sketchup object

    3
    0 Szavazatok
    3 Hozzászólások
    2k Megtekintések
    A
    An object of what you mean is a Sketchup Drawingelement. If the Drawingelement is a Face, Edge, ArcCurve or Curve, it will have a method to get all vertices, and for each vertex you can get the position (which is what you want): positions = face.vertices.map{|v| v.position} If the Drawingelement is a Group, ComponentInstance of Image, it is "a model" in the model any you have to loop over the contained entities: group.parent.entities.find_all{|e| e.respond_to?(:vertices) }. map{|e| e.vertices.map{|v| v.position} }.flatten or with component.definition.entities
  • Get points from a Sketchup object

    2
    0 Szavazatok
    2 Hozzászólások
    218 Megtekintések
    TIGT
    Why are you asking again? I already responded a week or so ago... http://forums.sketchucation.com/viewtopic.php?f=180&t=47043
  • Array of loaded rbs files?

    3
    0 Szavazatok
    3 Hozzászólások
    235 Megtekintések
    thomthomT
    So there is none? I tried to reload an .rbs (I mean, why not) and the only way so far was to make a temp file and load that...
  • Return values

    14
    0 Szavazatok
    14 Hozzászólások
    1k Megtekintések
    thomthomT
    @dan rathbun said: And the API needs these, and the app needs to use them. Yes - agree. Your idea about multiply two Length to get and Area, and Area with Length to get a Volume is very elegant. I'd very much like to see this into SU9.
  • Creating faces from points or edges fails

    7
    0 Szavazatok
    7 Hozzászólások
    847 Megtekintések
    thomthomT
    @tafkab76 said: That could quite easily be solved by an own "uniq"-method for Point3d-objects Actually - no. #uniq will not compare Geom::Point3d against their positions - but rather if they are the same object instance.
  • [Logic emerged] Articulation in animation

    10
    0 Szavazatok
    10 Hozzászólások
    1k Megtekintések
    Dan RathbunD
    NO problem. Chewin' on it helps. Sleeping on it helps. Brainstormin' helps.
  • Zoom in on object

    7
    0 Szavazatok
    7 Hozzászólások
    3k Megtekintések
    Al HartA
    Here is the code which makes this work. If points to the center of the first item in the selection set, then uses SketchUp zoom to selection to do the zoom. It zooms to the third, desired, image in the post previous to this one. def zoom_selection # zoom to selection by rotating camera first model = Sketchup.active_model entity = model.selection[0] if (!entity) do_error("Nothing selected") return end#if view = model.active_view camera = view.camera eye = camera.eye target = camera.target up = camera.up target = entity.bounds.center camera.set(eye, target, up) # point to selection view.zoom(model.selection) # then zoom end#def
  • Cleanup on SketchUp close problem

    2
    0 Szavazatok
    2 Hozzászólások
    368 Megtekintések
    thomthomT
    Yea, onQuit() has problems under SketchUp. Under OSX it isn't called at all. If you search the forum for onQuit you'll find a couple of threads on the topic. (Sorry, don't have the links at hand.)
  • [Tutorial] uvq coordinates, or: The Magic Q

    5
    0 Szavazatok
    5 Hozzászólások
    3k Megtekintések
    A
    I've read UVW somewhere as well. We have to find out more. For UVW mapping Wikipedia says no more than: "the third dimension allows texture maps to wrap in complex ways onto irregular surfaces" A Google search shows UVQ is mostly related with SketchUp, and that the names of these coordinates are not very standardized (just letters in the alphabet before x,y,z), for example there are also Q,R,S,T. There's an interesting explanation on gamedev.stackexchange, that the W allows to optionally apply a transformation matrix before rendering a texture to screen (for example for animating textures without expensive moving of the texture on every entity).
  • Review of Plugin/NameSpace/Extension Format

    5
    0 Szavazatok
    5 Hozzászólások
    472 Megtekintések
    K
    Thanks Dan for the review and changes. I have adjusted my files to include your suggestions and when I have a how to vidio completed I will post in the plugin section. Also I expect to be back for help on putting my Joint Tools under the namespace umbrella as I have just started that process. Keith
  • Create Text-object

    3
    0 Szavazatok
    3 Hozzászólások
    697 Megtekintések
    T
    Of course you´re right, I only browsed the Entity-Classes, not the Collection-classes, although I already created some faces using add_face...shame on me. thx for your quick response!
  • Nested classes and scope - a puzzle

    12
    0 Szavazatok
    12 Hozzászólások
    1k Megtekintések
    Dan RathbunD
    Another solution, IF the outer module does not contain instance methods, is to include it into the inner module: module TT_Test module Foo;;Biz include Foo def self.prod puts CHEESE end def self.q p Module.nesting end def self.other p Bar end end # Biz end # TT_Test I've seen weirder stuff in the standard Ruby Lib extensions, than that.

Advertisement