ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Instant bugsplat when playing saved file

    3
    0 Votes
    3 Posts
    443 Views
    S
    I too have SU8 with SP3.2 on Windows 7, but don't have the exact problem you describe even with older models from Sketchup warehouse. What I do get, is that when I download a warehouse model it bugsplats the first time I try to run it, but if I double click on the model file with Sketchup closed, so that the file opens and starts a new instance of Sketchup at the same time, it runs 'perfectly', despite the warning messages that the file is an older version and may not work. Sorry I can not be more help, but I cannot replicate what you describe. Just curious, does this happen if you start with a empty file and create a very simple model such as a single SketchyPhysics cube falling under gravity?
  • Emitters and Midi playing

    12
    0 Votes
    12 Posts
    1k Views
    N
    Maybe 6 months later we can work this out.... So I recently started to work on this again. I got my model to play midi sounds with your drum example codes (I like the drum example even though you say the piano one is better). I need a way to tell the emitters when to fire, and currently the way you have it in your models seems too time consuming (unless you didn't type it out one by one). And by not using your way ("10:46"=>[[...)), how can you change instruments? Does the new version of SP help with this? I'm sure you'll have more time now.
  • UI Inspector

    7
    0 Votes
    7 Posts
    953 Views
    D
    I have IE8, OS is WinXP Pro SP3. Using Sandboxie to isolate disk activity from my browsers, if that's a problem. Didn't used to be in an earlier build of this machine. Dunno what else might be relevant. I may just rebuild the OS setup and try again, since I've been using this setup for a while, and it's about due for a thorough clean-out.
  • Programming a Robot Arm

    11
    0 Votes
    11 Posts
    1k Views
    S
    Hi Klaufi, I have altered your code a little bit to use arrays for value and the new code illustrates various ways to iterate through, change and print out the the contents of an array. I think you will find the methods useful if your project gets more complex. I have also introduced a "case" construct for the counter, so that that the "move" procedure is not called 5 times every frame, which might speed things up a little. I hope you find the new code informative. Took me while to figure out how to do it, but it is all helping me learn Ruby. I just hope the Ruby etiquette police do not find out we have been using global variables. See the attached SU6 file but just in case that does not work, here is the code: def getf(frm) frm end f=getf(frame) if f==0 $temp=0 $counter=1;$counter2=0 $value=[0.5,0.5,0.5] $istpos=[0.5,0.5,0.5] end def move(zeit,sollpos,f) if f>=$temp && f<=zeit+$temp; if $counter != $counter2 # Only print to console if counter changes. puts "$counter= #{$counter} zeit= #{zeit} sollpos= #{sollpos.inspect} frame= #{f} " for i in (0..$value.length-1) # one way to iterate through array and print contents. puts "$value[#{i}]= #{$value[i]} " end $counter2 = $counter end $value.each_with_index { |i,j| $value[j]=$istpos[j]+(sollpos[j]-$istpos[j])*(f-$temp)/zeit; } # Another way to iterate through an array. end if f==zeit+$temp+1 $temp=$temp+zeit $counter=$counter+1 $istpos=sollpos puts"$counter=#{$counter} $temp=#{$temp} " puts"$istpos= #{$istpos.inspect} " #quick way to print array contents. end end case $counter when 1 move(150.00,[1,0.3,0.1],f) when 2 move(300.00,[0,0.1,0.2],f) when 3 move(20.00,[1,0.8,1],f) when 4 move(500.00,[1.5,0.9,0.6],f) when 5 move(20.00,[0,0.3,0.2],f) when 6 puts "Programmed sequence ended." $counter+=1 else # do nothing end atest2_SU6.skp
  • New to Sketchy, figuring it out, but still need help.

    3
    0 Votes
    3 Posts
    462 Views
    S
    Hi rbarr, I have made a number of changes to your model, but I think it now does what you intended it to do. I have moved the pivot point nearer to the front of the desk, increased the height of the desk top and chamfered the front of the top, all to provide clearance to allow the top to raise to a reasonable angle. I have also added an extra pivot and hinge at the back with a second slider. The back slider was trying to keep the top at right angles to itself, while the front slider was trying to tilt the top and this is part of what was causing the problems. I also re-grouped some of the joints. The original hinge joint was not grouped with anything, so that is why it would not move with the rest of the mechanism. Hope you like the result and let me know if you need any more help. Kev. physics cocktail5.skp
  • [loading problem]Unable to run a simulation

    3
    0 Votes
    3 Posts
    520 Views
    P
    Hey Kev, First let me start off by thanking you for the detailed answer. It really gave me a handle on how to attack this problem. I really appreciate all the detailed research. I'm running SKP7.1 on win7X64. I tried the hash in the ControllerCommands.rb which unfortunately did nothing. With your help i tracked it down to some old plugins that were clashing. It was time for some spring cleaning. Cheers mate.
  • HOW CAN I ATTACH 2 PISTONS TO ONE OBJECT?

    6
    0 Votes
    6 Posts
    1k Views
    K
    I don't understand exactly, what you want, so I guess: there are two pistons connected to one box? Maybe it helps if you connect it to just one piston, that is grouped with another box, that is connected to another piston. Hard to explain^^ But so you would avoid some problems, I guess. The second box can be set to invisible and ignore, so it is no obstacle anymore.
  • My model won't stand still!

    3
    0 Votes
    3 Posts
    746 Views
    M
    First of all, just let me say those gears are not my own design. I took them from this model on warehouse: http://sketchup.google.com/3dwarehouse/details?mid=595bce5d40b60f7f94909ccb7e2cf912 I must thank 3 times and I do it most gladly: first for the congrats ( ); second for the class (better than right my wrongs, your explanations help me with some other issues I've been wondering lately); and last but not less important, for the attached file. Your solution is not only more efficient, but also more elegant. The top bar was supposed to be grouped with the vertical bars, just to be easier to see how it behaved. Once more, thanks for the explanations and the corrected file
  • Does any SketchyPhysics Mac user exist ???

    10
    0 Votes
    10 Posts
    2k Views
    K
    I use SketchyPhysics (at least I tried to) on mac and I fixed the joints and now the toolbar doesn't show up!!! Also I use a PowerPC Mac!
  • Sketchyphysics not working on PowerPC!!

    8
    0 Votes
    8 Posts
    2k Views
    K
    There is no VLK_LOPTION in JointTool.rb! And also getKeyState (the method on lines 85 and 416) is for Windows!!!! if(getKeyState(VK_LOPTION) && ( ent.class==Sketchup::Group || ent.class==Sketchup::ComponentInstance) ) puts "potentialParent "+ent.to_s @potentialParent=ent else
  • Door hinge servo not working

    14
    0 Votes
    14 Posts
    2k Views
    S
    @unknownuser said: Hav'n fun now You seem to really have got to grips with SketchyPhysics now. Nice surprise in the model.
  • How do i add items to a car from 3d Warehouse

    4
    0 Votes
    4 Posts
    903 Views
    S
    Hi again, I have just done a test and this slightly simpler method should work (in most cases): Right click on the car body and select "Explode" in the pop-up menu. Hold left-shift down and left-click on the roll cage. (All the car body parts and the roll cage should all be highlighted now.) Right-click on one of the selected parts and select "Make group". That should do it and the all the joints should still be functioning correctly if the model is not too complex and does not use ruby codes in the controllers.
  • Controlled car with game-steer ?

    4
    0 Votes
    4 Posts
    1k Views
    F
    The DFGT is compatible with SP, you just have to work out what each control is called. The attachment is the controls that work with my DFGT, you just have to copy the code from the controller field in the UI. Also, the names of the buttons aren't much help in determining what they do. The only other thing is that you have to have it at 200 degrees lock in the Logitech controller settings to avoid a massive deadzone. If those controls don't work correctly, then if you open the file in "C:\Program Files\Google\Google SketchUp 8\Plugins\SketchyPhysics3" called ControllerCommands.rb, all the names of the controls are defined, so just try mapping each name to a piston/servo and see what it does. Hope that helps The red ones don't seem to be mappable
  • Working on Mac, or no?

    5
    0 Votes
    5 Posts
    761 Views
    A
    I guess not.
  • SketchyPhysics causes bugsplat whenever I hit play

    2
    0 Votes
    2 Posts
    630 Views
    C
    Hmmm........Any details on your computers capabilities would be helpful (RAM, graphics, ETC) Cheers,
  • Simple clutch in SketchyPhysics?

    4
    0 Votes
    4 Posts
    700 Views
    S
    Just in case anyone is interested, I have attached a model using my magnetic clutch idea I mentioned earlier, combined with the helpful ruby control codes from Mr K, which allows the driven part to free-wheel when the clutch is disengaged. By changing the status of the yellow driven part in the model to "static", the clutch becomes a dynamic brake powerful enough to stop the motor. Might be an idea to have a clutch/brake joint in SP 4.0? magclutchK.skp
  • Pivot arm won't pivot

    11
    0 Votes
    11 Posts
    2k Views
    R
    Thanks again SK, to answer your question, I just used the "push/pull" method to make my parts. I don't know what "outer shell" is. But now I will go look for it. Rick
  • Start animation on frame

    8
    0 Votes
    8 Posts
    932 Views
    M
    dir.length/=5 simply divides the pulling vector length/strength by 5, that way the pull is more gentle and the starts are smoother( a more car like movement), greater the number gentler the pull. But going too far with speed and smoothing can cause rubber banding.
  • Mint 10(Ubuntu10.10), sketchyphysics, sketchup and wine 1.2

    14
    0 Votes
    14 Posts
    6k Views
    A
    If you use SketchUp Pro, you certainly had to install .Net framework? According to this guy, webdialogs work only if .Net framework is not installed: http://robsworldoftech.blogspot.com/2010/12/getting-sketchup-8-working-in-wine-even.html You can simply try it out by renaming your ~/.wine folder into ~/.wine_backup or something (for the case you need it again). Then Wine creates a clean new ~./wine folder when you install SketchUp 8 Free (+ the tricks for Internet Explorer etc, but no .Net framework).
  • 2 questions.....

    2
    0 Votes
    2 Posts
    596 Views
    M
    SP uses flat earth calculations, but the matrix range isn't really big enough that it would matter You can only roughly simulate ropes/pulleys via sliders, pistons and hinges, but that will all be very rigid

Advertisement