Distort Curve script
 1-7  8-27  28-47  48-62

Previous
Next
 From:  Andrei Samardac
6659.28 In reply to 6659.27 
Thanx Michael, works great, but one thing is have to be fixed for example if curve have 50 units long it works good but if curve for example have 2000 units long it does not work, nothing distorting... I have to enter value by hands.

EDITED: 3 May 2014 by ANDREI SAMARDAC

  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:  Andrei Samardac
6659.29 
And little tutorial, how I use this script to make curtain, in project I am workin on.

  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
6659.30 In reply to 6659.28 
Hi Andrei,

> Thanx Michael, works great, but one thing is have to be fixed for example if curve have 50 units
> long it works good but if curve for example have 2000 units long it does not work, nothing
> distorting... I have to enter value by hands.

That doesn't have anything to do with the rebuild part, it's just how the script is currently set up, it uses a sort of base displacement of 0.2 units.

If you'd like something that's relative to the overall size of the curve rather than a more fixed size displacement, try changing the randomizePoints() function inside _DistortCurves.htm to this:

code:
			function randomizePoints()
			{
				for ( var i=0; i<curves.length; i++ )
				{
					var size = scurves.item(i).getBoundingBox().diagonalLength / 20.0;
				
					for ( var p=0; p<curves[i].length; p++)
					{	
						curves[i][p].dx = size*(Math.random()-0.5)/5;
						curves[i][p].dy = size*(Math.random()-0.5)/5;
						curves[i][p].dz = size*(Math.random()-0.5)/5;
					}
				}
				lastdistort=-1;
			}


This version puts in a scale factor that's related to the bounding box size of the object so the displacement on your 2000 unit long curve should work a bit more naturally this way.

- 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:  Andrei Samardac
6659.31 In reply to 6659.30 
Michael, Thank you I'll try :)

____________________________________________________________________
My Portfolio: www.samardac.tumblr.com
A lot of my Tutorials!
Subscribe to my youtube channel: http://www.youtube.com/samardac
Russian community of MOI 3D: www.vk.com/moi3d
  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:  Andrei Samardac
6659.32 
And sweet candy!!!

candy


____________________________________________________________________
My Portfolio: www.samardac.tumblr.com
A lot of my Tutorials!
Subscribe to my youtube channel: http://www.youtube.com/samardac
Russian community of MOI 3D: www.vk.com/moi3d
  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
6659.33 In reply to 6659.32 
> And sweet candy!!!

Ha, good one! Finally a case where some wrinkling in loft was useful... :)

Loose loft looked too smooth for this case.

- 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:  Andrei Samardac
6659.34 In reply to 6659.33 
Michael, yep, wrinkling works great)) Yes loose is not very good for gathers.

2014 05 03 11 30 39 [ Front]

____________________________________________________________________
My Portfolio: www.samardac.tumblr.com
A lot of my Tutorials!
Subscribe to my youtube channel: http://www.youtube.com/samardac
Russian community of MOI 3D: www.vk.com/moi3d
  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)
6659.35 
Sweet candy!
---
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
6659.36 In reply to 6659.27 
Thanks 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:  Max Smirnov (SMIRNOV)
6659.37 In reply to 6659.27 
>> @Max - changes were: added a "Rebuild" checkbox and an input for number of points to use.

Hi Michael,
Thank you very much! the script is great now.

P.S. I'm very busy at work during last months. So, I haven't enough time for programming.
  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
6659.38 In reply to 6659.37 
Max,
I really appreciate the scripts you make and that you share them with us. 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:  Dan (MONTAGMAN)
6659.39 In reply to 6659.9 
As a side note, thanks for posting that video. I didn't realize you could type commands into the text box at the bottom. That is something I really like about Rhino (big time saver), and now I know I can do it in MoI too! Can't wait for v3 so I can see if it will work on my Linux machine. :)
  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:  Andrei Samardac
6659.40 
Michael could you pleas make this script to keep style after applying it?

____________________________________________________________________
My Portfolio: www.samardac.tumblr.com
A lot of my Tutorials!
Subscribe to my youtube channel: http://www.youtube.com/samardac
Russian community of MOI 3D: www.vk.com/moi3d
  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
6659.41 In reply to 6659.40 
Hi Andrei,

> Michael could you pleas make this script to keep style after applying it?

Please try updating with the attached file, this should preserve properties like style and object name on the distorted curve.

- 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:  Andrei Samardac
6659.42 In reply to 6659.41 
Thank you!!

____________________________________________________________________
My Portfolio: www.samardac.com
A lot of my Tutorials!
Subscribe to my youtube channel: http://www.youtube.com/samardac
Russian community of MOI 3D: www.vk.com/moi3d
  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:  stevecim
6659.43 In reply to 6659.42 
Hi Andrei



Don't know if this has been asked before (have not been around lately :) ) how do you setup the commands menu popup in MoI? thats in your video?

Cheers, Stephen
  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:  DannyT (DANTAS)
6659.44 In reply to 6659.43 
Hi Stephen,

That pop up menu is part of Max Smirnov's custom GUI he developed, you can find it at the following link

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

-
~Danny~
  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:  mark1
6659.45 
Is v0.8 the latest version? Because it doesn't seem to include that rebuild command that can be seen in Max' videos.

Or is there a central place with all of his scripts?
  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
6659.46 In reply to 6659.45 
Post 27, version 0.9
  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:  mark1
6659.47 In reply to 6659.46 
Mhh, must have overlook that. 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
 

Reply to All Reply to All

 

 
Show messages:  1-7  8-27  28-47  48-62