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
  • Attribute dictionary pairs into variables & values?

    8
    0 Szavazatok
    8 Hozzászólások
    816 Megtekintések
    M
    @chris fullmer said: I've used both [hashes and dictionaries] before, just never really enough to feel like I know what I'm doing. Crash course in hashes (a very useful tool to have at hand): A hash is a dictionary and vice-versa. They are sets of key/value pairs. An array is one form of hash: arr[0] = 'fred'. The key is zero and the value is 'fred'. Arrays are commonly restricted to integer keys. The term "dictionary" is commonly used when the keys are single words. dict['name']='fred'. Ruby makes hashes dead simple (though only a devout Rubyist could love the syntax): [image: Ruby-example.jpg] In JavaScript, both objects and arrays are hashes: [image: javascript-examples.jpg] The last example shows that the key need not be a string. (True in Ruby if you start with a hash: h=Hash.new() or h={}.) The key can be virtually anything. I'm using SketchUp ComponentInstance objects as keys in the stuff I'm doing today (trying to get a lot of things moving all at once). In Ruby, an array must be indexed by number. A hash may be indexed by anything. In JavaScript, an array is really a hash, which wins the flexibility prize but you wouldn't enter them in a race.
  • Threads Needed, Waits Wanted

    7
    0 Szavazatok
    7 Hozzászólások
    768 Megtekintések
    M
    I had this brilliant idea (that was a total flop). Since the delay works between frames in an animation, why not just grab that one? Was working well until I moved the puts Time.now() - start out of the animation code and into the mainline: for i in 1..10 do waiter(500); puts Time.now() - start end That said something like 0.03, 0.06, ... So I moved a call to a continue() method into the animation in response to stop(). BugSplat. I think I know how to at least solve the starter problem. The animated "move" commmand stacks move specs that are then run in an animation. Kludgy? Yup. PITA? Yup. But it should actually work.
  • View? Thanks, TT!

    2
    0 Szavazatok
    2 Hozzászólások
    353 Megtekintések
    thomthomT
    Hopefully the docs will soon be amended to reflect my comments.
  • Generate smooth 2d circle for screen

    14
    0 Szavazatok
    14 Hozzászólások
    2k Megtekintések
    pilouP
    One of the best appearence of drawing curves on the screen is Moment of Inspiration The guy (Michael Gibson) has developped his own graphic engine [image: http://forums.polyloop.net/attachment.php?attachmentid=22617&d=1192006151] [image: http://forums.polyloop.net/attachment.php?attachmentid=22618&d=1192006151] [image: http://forums.polyloop.net/attachment.php?attachmentid=22619&d=1192006151] So you can have that directly on the work's screen By PaQ (Click for zoom)
  • View.invalidate vs view.refresh

    8
    0 Szavazatok
    8 Hozzászólások
    745 Megtekintések
    Chris FullmerC
    But that is done with an animation class, right? I was thinking maybe moving things that do not use the animation class would need it. But again, I'm probably wrong. I have not tried this, my computer has been tied up rendering artsy shadows for the seasonal changes over the course of a year.
  • Ghost Files

    16
    0 Szavazatok
    16 Hozzászólások
    1k Megtekintések
    thomthomT
    @honoluludesktop said: Here is an explanation, and "partial" solution. Thomas, When UAC off and as administrator, have you ever experienced a program having problems saving files? Nope.
  • Lock inference to X, Y or Z_

    12
    0 Szavazatok
    12 Hozzászólások
    1k Megtekintések
    thomthomT
    @chris fullmer said: a point and/or another inputpoint. I only see it referring to InputPoints... And I think the ip it takes as argument are meant for inferring... ...the docs are a wee bit unclear here...
  • Manipulating the InputPoint

    10
    0 Szavazatok
    10 Hozzászólások
    2k Megtekintések
    thomthomT
    So I'm not mad!
  • Timer < 1.0 seconds ?

    17
    0 Szavazatok
    17 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    I haven't had time to test this code yet..Has anyone else had a chance?
  • Developer needed for sketchup plugin - closed

    5
    0 Szavazatok
    5 Hozzászólások
    667 Megtekintések
    R
    thanks guys, we've found someone. No need to apply anymore Radiance
  • Export google sketchup file to other software

    3
    0 Szavazatok
    3 Hozzászólások
    735 Megtekintések
    M
    @henda said: Ruby script or Ruby extensions written in C\C++ can export google sketchup file to other software that accept only xml file? Do you need something general-purpose (very hard) or more specific (possibly easy)?
  • Web Dialog bug?

    5
    0 Szavazatok
    5 Hozzászólások
    533 Megtekintések
    M
    @brett mcallister said: Thanks for the replies. The only ruby code I am using is just to load the dialog to test it so there is no namespacing etc. Sounds like that will solve the problem,so I will keep that in mind as I get further along. Cheers Brett Failure to include two parameters in the code block of an action callback is a crime punishable by BugSplat. PC or Mac?
  • Change face color of component

    5
    0 Szavazatok
    5 Hozzászólások
    3k Megtekintések
    Dan RathbunD
    refering to TIG's example: Sketchup::Group is also subclass of Sketchup::DrawingElement (so Sketchup::Group instances will inherit a material= method from it's superclass Sketchup::DrawingElement.)
  • Model.edit_transform for parent

    11
    0 Szavazatok
    11 Hozzászólások
    1k Megtekintések
    C
    sorry, I must be really tired today. I meant you can't use a pickhelper outside of the current context. so If you you have two instances in the model, and you double click one, you can't use the pickhelper on it's sibling.
  • How to Convert file google sketchup .SKP to .XML

    4
    0 Szavazatok
    4 Hozzászólások
    4k Megtekintések
    H
    What difference between file exported to format Collada and files exported by script SU2KT ?
  • Writing Readable Ruby

    11
    0 Szavazatok
    11 Hozzászólások
    935 Megtekintések
    Dan RathbunD
    @unknownuser said: [Is it because ] super [is ] a keyword? Hence this exception? I believe so. If you look at the lex.c file in the Ruby source, you'll see there are only 3 keywords that use argument lists: defined?, super and yield. In the eval.c file, you see these statements are converted into internal C function calls, (like everything else in Ruby.)
  • Colours to illustrate range

    13
    0 Szavazatok
    13 Hozzászólások
    2k Megtekintések
    thomthomT
  • Adding text clears Sketchup window

    6
    0 Szavazatok
    6 Hozzászólások
    535 Megtekintések
    P
    Tig, true, normally i always check if the array has any value or length>0 What would be the best way to check if an array has values? I assume length is the way to go? test=[] if test==[] -->TRUE if test==nil --> FALSE if test.length<1 -->TRUE
  • Developers wish list

    3
    0 Szavazatok
    3 Hozzászólások
    326 Megtekintések
    P
    Great, not sticky?
  • [Code] layer.delete()

    20
    0 Szavazatok
    20 Hozzászólások
    6k Megtekintések
    P
    Great thx Tig for the extra explanation Now if only this was possible for materials to (without having to duplicate the entities first) BTW Tig, do you know if is possible to refresh the Layer window?

Advertisement