How to automate creating something like this?
 1-5  6-25  26

Previous
Next
 From:  Michael Gibson
8088.6 In reply to 8088.1 
There will be a few cleanups that I'll do later tonight like if any curves are selected I'll just use those curves instead of all curves and not use any hidden objects.

But for the moment just use it with a fresh model that only contains the solids and the curves since the first version will just process anything in the model including hidden things.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  chippwalters
8088.7 
Great!

I'll check it out and post some pics after I return from dinner. Thanks!!!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
8088.8 In reply to 8088.7 
One of my method with Sketchup! http://sketchucation.com/forums/viewtopic.php?f=15&t=65765&p=603178#p603178
Ground will be trivial ;)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  chippwalters
8088.9 In reply to 8088.8 
Thanks Frenchy!

Michael, been working on this for awhile now, and things do work BUT it's amazing how SLOW the Randomize routine is. Is there anyway to speed it up? I tried it on my i5 Mac Mini and it was slow, so I took it to my monster 16-core HotRod PC thinking it would speed things up, but the Randomize routine is as slow there as on the Mac.

A grid of 100 x 60 boxes takes a good 60 minutes plus to randomize. Perhaps the redraw is the problem? If so, can we get an option to turn it off?

I'll post some images soon-- and if time permits a video tutorial.

Thanks again!!!

EDITED: 10 Sep 2016 by CHIPPWALTERS

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8088.10 In reply to 8088.9 
Hi Chipp, try the attached updated version of Randomize and see if it is better.

This version has all the code moved to the .htm file so it runs in the main thread instead of doing a lot of interprocess communication which is what slowed down the original version.

In MoI v4 I've changed things so the code in the .js file will run on the main thread automatically instead of running out of process, which will speed it up a lot for chatty stuff like this but also make it more difficult to interrupt an ongoing script process.

- Michael
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  chippwalters
8088.11 
Thanks for the script, Michael. I'll check it out first thing.
Here's a HUGE MoI3D model I created-- had to export it in parts. Turned out OK, but it's laborious mostly because of the memory issues. I suspect once v4 gets here, I can export the whole thing at once.

CLICK FOR LARGER IMAGE

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
8088.12 
Now animation by vertical movement of each "cube" for marvelous effect! ;)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dinos
8088.13 
I did something similar about 4 years ago for a project that wend nowhere. The data where read from a heightmap image, scaled to the correct size, and imported into Moi by a script.

Cant find that script right now, but even if i could it was nothing more than a quick hack so not really useful for anyone but me.


Dinos

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
8088.14 
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  chippwalters
8088.15 In reply to 8088.13 
dinos,

Wow, that's cool. What is the purpose of the back end stuff? Is this supposed to be some sort of socket plug in component? Thanks for sharing :-)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  chippwalters
8088.16 
Hi Michael,

Checked out your Randomize Script.

Created an array of 10mm cubes 30 x 30 = 900 cubes in all. Set it to randomize height only between 5-10mm.

Tested on my Mac Mini i5 (not terribly fast). Older version took just over 75 seconds.

New version < 1 second. Not bad for optimization :-)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
8088.17 
For the fun! ;)


---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  chippwalters
8088.18 In reply to 8088.17 
Thanks Frenchy.. Didn't know JPP had a random feature. Interesting!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8088.19 In reply to 8088.11 
Hi Chipp, that turned out great!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dinos
8088.20 In reply to 8088.15 
Thanks Chipp!

This was really just a fun project, a sort of an 8bit version of the classic Pin Art Game :-)
Here is a photo of the physical, 3D printed version.

Pilou, this was done a few years before Max's script.
The principle is the same though, and it would be relatively easy to modify Max's script to perform a similar job to my lost script.

Dinos

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  raytownmike (HOPPER)
8088.21 In reply to 8088.20 
I can't seemed to get the Randomize script to work. Message reads: Can't find variable: Randomize like 1 1:>>Randomize

Any thoughts what I maybe doing wrong here. I believe I installed it correctly.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8088.22 In reply to 8088.21 
Hi Mike, please see reply over here: http://moi3d.com/forum/index.php?webtag=MOI&msg=5416.47

You'll definitely only get that particular error message if it's not installed correctly - either the files are not in the commands folder where MoI is looking for them (in which case as a last resort it tries to run the text content as script code), or your keyboard shortcut is not set up properly like if it reads script:Randomize (the script: prefix tells MoI to execute the following as direct script code) instead of just plain Randomize.

The error means the script engine tried to run the plain text "Randomize" as script code.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mindset (IGNITER)
8088.23 In reply to 8088.5 
Hello Michael Gibson and everyone,

Your SelectIntersected script is very close to my V4 wish-list item for a lasso type selection marquee.
I have attempted to generalize it a bit to work on items other than solids.
I have had success using this new version to organize the result output from Max Smirnov's wonderful _RadialPattern script.

My hope is that someone might take a look at the attached script and improve on my feeble attempt.
Also, a better name for the script might be appropriate.

Best regards to all,
-- Mindset

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8088.24 In reply to 8088.23 
Hi Mindset, could you describe a little more about what problems you're running into with your script currently? I mean what is it that you are looking to improve in it?

I'm a little confused as to whether you need help with something in the script or if you're posting it so that others can use it?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mindset (IGNITER)
8088.25 In reply to 8088.24 
Thank you Michael,

I am happy for others to use it, definitely of course.
I do not know if it needs improvement or not, but of course any improvement always makes things better (by definition).
I am not sure if we have naming conventions for these things... for example the script name RotateObjects seems inconsistent with that of ScaleIndividual, but their functionality is analogous.

I am just trying to cooperate as best I can; wishing I could do more.
If I were the king of Norway you really would get the Nobel prize.

-- Mindset
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-5  6-25  26