Randomize scale on 1 axis
All  1-5  6-14

Previous
Next
 From:  Frenchy Pilou (PILOU)
5963.6 
<< First script doesn't seem to work :/

Sorry but it's working like a charm ;)
Select all objects call Script = just some objects are selected
Apply a Scale
Select all objects call Script = just some objects are selected
Apply a Scale
etc...

  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:  Samuel Zeller
5963.7 In reply to 5963.6 
Oh I got it, I thought it was scaling the objects automatically and randomly :)

I'll try and post my results later on !

Thanks
--
shapenoid.com stojan-voumard.com
  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
5963.8 In reply to 5963.1 
Hi DesuDeus, also in addition to the one that Burr linked to above, there is a Randomize plug-in available here:

http://moi3d.com/forum/index.php?webtag=MOI&msg=5416.24

The updated version of that added some controls for being able to do the scaling in just one direction like you're asking about...

- 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:  Frenchy Pilou (PILOU)
5963.9 
Forgotten this one :)
---
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:  BurrMan
5963.10 In reply to 5963.8 
Hi Michael,
Can you discuss a little about the parts of the scale function that need to change to use the bounding box "bottom" instead of center, in the randomize command?

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:  Michael Gibson
5963.11 In reply to 5963.10 
Hi Burr,

> Can you discuss a little about the parts of the scale function that need to change to use the bounding box "bottom"
> instead of center, in the randomize command?

You can use the Transform > Align command on objects to align their bounding box bottoms to a particular point, that should get the result you want I think.

To do it directly in the randomize command you can edit the Randomize.js file, find the function for ScaleObject(), and in there the current center is done by this:

var center = obj.getBoundingBox().center;

If you want to pull the z value down to the bottom of the bounding box, add a line underneath it that adjusts the z value to the min corner of the bounding box, like so:

var center = obj.getBoundingBox().center;
center.z = obj.getBoundingBox().min.z;


With that second line added, the scaling should happen from a base point on the center bottom of the bounding box instead of it's full center.

Hope that's what you were asking for.

- 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:  BurrMan
5963.12 In reply to 5963.11 
Thanks Michael, that did it.

I wasnt sure because there was alot of "center" stuff after that. I suppose it's time to get javascripted! :o
  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:  Samuel Zeller
5963.13 
I ended doing it in Cinema 4D using mograph...

(please don't share this link outside this forum)
https://dl.dropboxusercontent.com/u/44982094/ECOVER%20BOSSONS/18b.jpg

I still need to add details.
Everything is MoI 3D except the blinds !
--
shapenoid.com stojan-voumard.com
  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
 From:  Samuel Zeller
5963.14 
But thanks for the updated script Michael !

Will definitely use it in the future :)
--
shapenoid.com stojan-voumard.com
  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: All  1-5  6-14