Show messages:
1-17
18-25
From: Frenchy Pilou (PILOU)
Damned seems there is a SyntaxError: Expected token ')' somewhere in this
???
script: /* Attribute a point at each center box's object selected*/ var objs = moi.geometryDatabase.getSelectedObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); var pt = obj.getBoundingBox().center; var ptfactory = moi.command.createFactory( 'point' ); ptfactory.setInput( 0, pt ); ptfactory.commit(); }
this is the good one!!! (don't know where is the difference but... :)
script: /* Place a point at each selected object's bounding center */ var objs = moi.geometryDatabase.getSelectedObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); var pt = obj.getBoundingBox().center; var ptfactory = moi.command.createFactory( 'point' ); ptfactory.setInput( 0, pt ); ptfactory.commit(); }
From: Frenchy Pilou (PILOU)
You can also draw 2 Circles (constant radius) in a view
then now same radius circle but now Tangent !
Copy rotate at any moment in another view!for the third and upper...
At the end no problem to remplace all by spheres with the plugins seen above!
Like this you can simulate any natural falling bubbles! :)
From: Don (DON_CHEKE)
Thank you all for the input. It is so nice to be able to ask questions on a CAD forum and get so much help.
From: Frenchy Pilou (PILOU)
Of course the last trick is some manual and not so automatic! :)
And at the start draw the second circle vertically above the first one
for have a good start of propagation...
From: bemfarmer
Either script works fine for placing a point. (no syntax error)
- Brian
From: christian (CHRI)
Hi
new files
Chri
Image Attachments:
SPHERES EMPILEES SKP 01.png
SPHERES EMPILEES SKP 02.png
SPHERES EMPILEES.png
From: Frenchy Pilou (PILOU)
Yep that is the more easy for the moment! :)
If there are different sizes of spheres just take different color for each size!
(so for each familly of points...maybe successive imports... )
How is done the import from SketchUp ?
SVG, OBJ, DXF ... ?
From: Don (DON_CHEKE)
I just wanted to say thanks again. I did end up doing it in SolidWorks. Attached is a very low res animation.
Attachments:
Bumball Machine Animation LowRes.mp4
Show messages:
1-17
18-25