How to Resize a Multitude of Similar Objects?
 1-17  18-35

Previous
Next
 From:  YHWH_777
5243.18 In reply to 5243.13 
Michael:

Thanks for the script. I took a look at the other scripts, but without a reference/manual or guidance, I was lost.

<< ... here is a plug-in that will do what you are asking about...>>

I tried to execute the script, but it doesn't seem to be functioning properly.

The upper right hand corner of the screen doesn't seem to be drawing properly. I can't enter the scaling factor.

See attachment...

FYI: I'm running Win7 64-bit.
Image Attachments:
Size: 14.7 KB, Downloaded: 32 times, Dimensions: 222x102px
  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:  YHWH_777
5243.19 In reply to 5243.18 
Michael:

OK, I think I figured it out.

The script looks like it might be specific to the V3 Beta. I downloaded the V3 Beta and it seems to work properly.

Once again, thanks for all of your help.
  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.20 In reply to 5243.18 
Hi YHWH_777, looks like you might be using it with MoI v2? Try using it with the current v3 beta and it should work fine.

- Michael

EDIT: looks like you figured that out already.
  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
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
Next
 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

Previous
Next
 From:  Frenchy Pilou (PILOU)
5243.30 
Seems RotateObjects Rotate only in the vertical direction!

Does it possible to have the other directions ?
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel 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
5243.31 In reply to 5243.30 
The randomize one will achieve that. I think rotate objects was a "particular case" cookup....
  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.32 In reply to 5243.30 
Hi Pilou,

re:
> Seems RotateObjects Rotate only in the vertical direction!
>
> Does it possible to have the other directions ?

Can you show an example of what you're trying to do? Maybe the node editor would be a good solution.

- 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)
5243.33 In reply to 5243.32 
Say in this case for any reason i want rotate all objects just after the explodeMove following the Y axis


But seems James gives us just the answer with the Node editor! :)
https://moi3d.com/forum/index.php?webtag=MOI&msg=10159.6
  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.34 In reply to 5243.33 
Hi Pilou, also there is RotateObjects2 which allows you to pick the rotation axis either Top, Front, or Right views:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8558.4

- 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
 From:  Frenchy Pilou (PILOU)
5243.35 In reply to 5243.34 
Missed this one! Excellent!
So will be added in no time here! :)
Done: French version!
https://moiscript.weebly.com/rotateobjects.html

EDITED: 12 Feb 2021 by PILOU

  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-17  18-35