How to Resize a Multitude of Similar Objects?
 1-20  21-29

Previous
Next
 From:  BurrMan
5243.21 In reply to 5243.20 
It's probably a good idea that it doesnt update the view before the commit?
  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)
5243.22 
---
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:  Frenchy Pilou (PILOU)
5243.23 
---
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:  Michael Gibson
5243.24 In reply to 5243.21 
Hi Burr,

> It's probably a good idea that it doesnt update the view before the commit?

Yeah it tends to take a bit of extra time for a script to process all the stuff, so I figured it should just update stuff once after it has all the information. Also it tends to be easier to write a script that way, it usually takes extra work to do dynamic updating stuff.

- 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:  Metin Seven (METINSEVEN)
5243.25 
Great, the ScaleIndividual command is just what I needed for a current project, featuring lots of teeth I had to scale individually in a cartoon character's mouth.

After scaling I used the ExplodeMove command to get the teeth back against the inside of the mouth. Worked as a breeze.

The source of useful scripts and commands seems inexhaustible. *insert thumbs up emoticon* :)

EDITED: 6 Nov 2016 by METINSEVEN

  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:  bemfarmer
5243.26 
My latest project uses a (reduction) factor of 1/1.325, which divides out to 0.7547169811320...

In the scale command, it would be convenient to have a division factor input, in addition to the
scale factor input, to get MoI to do the division.

Rather than mess with MoI's stock Scale command, a modified ScaleIndividual command was done.

Added to the .js:
var scalefactor = moi.ui.commandUI.factor.value;
var scaledivisor = moi.ui.commandUI.divisor.value;
scalefactor /= scaledivisor;

Added to the .htm:
code:

				<tr>
					<td>Scale divisor:</td>
					<td><moi:NumericInput id="divisor"/></td>
				</tr>	
					   


Now to add two default values of 1.0, and add back in "make copies."
...then disable bounding box, and add some rotations... or not :-)

- Brian

EDITED: 28 Jan 2017 by BEMFARMER

  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
5243.27 In reply to 5243.26 
Hi Brian, in any MoI numeric input field you can enter in arithmetic. So in the regular scale command, in the "Scale factor" field, you can just type in 1/1.325 and push enter, and let MoI calculate the result for you. The result will flash briefly (rounded for your display precision) in the field after you push enter.

Does that do what you need or were you looking for something different?

- 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:  bemfarmer
5243.28 In reply to 5243.27 
Thank you Michael. That excellent tip will do it!

I'm doing a "Harriss spiral," but it will likely be a one-time interactive MoI rectangle construction, with some tapered sweeps.
https://www.theguardian.com/science/alexs-adventures-in-numberland/2015/jan/13/golden-ratio-beautiful-new-curve-harriss-spiral

- Brian
  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:  Christopher (SCHARDT)
5243.29 In reply to 5243.13 

Thanks so much for making ScaleIndividual! I just used it to resize over 5000 rectangular solids in a model of an LED display.

In this conversation, you had suggested that it would be easier to just delete all but one object re-make the array again. This wouldn't work in my case because what I had was not at all a simple array. I had solids that were rotated and positioned in a quasi-circular pattern that in no way can be quickly re-created. It would have been even more so if I had colored them yet. :-)

Thanks again.

  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-20  21-29