Randomize scale on 1 axis
All  1-10  11-14

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-10  11-14