Don't know, whether the "old" standard Ruby "require" is really needed for all scripts. If you do not need it at all, WHAT is Sketchup.require doing? Does it use the "old" "require"? If not you can think about replacing it dynamically:
module Kernel
def require *args
Sketchup.require *args
end
end
(not tested, maybe the asterisks are on wrong place)
After that you can use the "old" require and get the behaviour of the Sketchup "require"
azuby
Note
Forgot to comment in file
xline is created to keep from selecting as path and to use for axis setting as a single line only provides the x axis refference to the align ruby
dtr
I would call that "recording of a macro". And as of today - no can do. Sketchup is closer to being able to do this with V6, but there are not enough "hooks" to get there yet.
It would be a nice feature.
Todd
I've had no success either. I guess its because if you look at how its recommended to embed Ruby in an App, its a very simple ruby_run() model. So SU may be multi-threaded or not, but the call to Ruby is a busy wait.
Pretty much the only thing that does work is spawn a Ruby thread that twiddles the Sketchup.set_status_text
Adam
i spoke about a case, when a face-origin pyramid is partially inside and partially outside of the calculated shape
but maybe since complicated things tend to be trivial once you get the 'clue' after adding all the pyramids together you will get the correct result, forgive me for being sceptic... comparing your and the original 'slicing' method could prove your point
TBD thanks for your encouragement, will share for sure, it's fairly easy with the bounding box proposal from above - will get to it tomorrow, hope that method works
stay tuned
Here are my findings in relation to attributes assigned to the SKM file:
SU will not save an attribute containing an array or hash
SU will save multiple keys within single attribute dictionary .. but will load only first!
In attached sample there are three keys saved:
<n0:AttributeDictionary count="3" name="su2kt">
<n0:Attribute key="kt_lib_path" type="10">TEST1</n0:Attribute>
<n0:Attribute key="kt_map" type="10">KT MAP</n0:Attribute>
<n0:Attribute key="kt_mat" type="10">KT MAT</n0:Attribute>
but only first kt_lib_path will be loaded
I am afraid only a fix from Google would help.
Tomasz
http://www.sketchucation.com/forums/scf/sas/Ruby/Silver.zip
I usually have camera scenes, and then scenes that save something else, different section cuts for instance. Different phases on diff. layers, or whatever... so in one cam. I can show 3 diff. phases, 3 diff. section cuts, then move to the next view, and do it all again...very powerful w/ clients and bosses.
Also there's this http://www.smustard.com/script/ChamferAlongPath
The old SU forum needed to move in order to gain access to the greater Google resources to better support the growing user community http://groups.google.com/group/sketchup-Pro-Groups.
You probably already know, but just in case: if you turn the opacity to 70 or higher, it will then receive shadows. Or at least that was the rule when they first introduced transparency in SketchUp. Haven't tried it since \
Juat checked. That measure has to do with casting shadows, not receiving them. sorry about that.
I actually found this implied in an example in the length class API. If you use a float, the math comes out like you would expect. The Length class is where this changes (as Al suspected). Notice that the 0.001" value that I got while testing is not mentioned as a limiting factor.
@unknownuser said:
<
The < method is used to see if one length is less than another length.
Syntax
status = length1 < length2
Arguments
length1 - a length value
length2 - a length value
Return Value
status - true if length1 is < length2; false if length1 is not < length2
Comments
For example, if l1 = 1.0.inch and l2 = 1.000001.inch then l1 == l2 so l1 < l2 should return false.