Distort Curve script
 1-20  21-40  41-60  61-62

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6659.21 
v.0.9
[Added] Closed curves support
[Changed] Distort slider values. Now Distort(10) = +- 1 unit. If you use mm unit system, Distort(10) = +- 1mm. Distort (150) = +-15mm, etc.
[Fixed] Pilou's bug. (I can't reproduce it, but I added one more check. Now this bug should be fixed. Pilou, try this version.)

EDITED: 7 Mar 2022 by SMIRNOV

  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.22 In reply to 6659.17 
Hi BurrMan

>>Now looking at your youtube, I see the "flythrough camera". Are you working on that or did I miss a post you made?

It was a tech demo :) I have an idea to write flycam script, but I haven't free time for it.
  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.23 In reply to 6659.21 
Thanks Max!

-
~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:  Frenchy Pilou (PILOU)
6659.24 In reply to 6659.21 
@Max
Works fine this time! :)
Except maybe some lines and curves of the Sphere ?



http://moiscript.weebly.com/uploads/3/9/3/8/3938813/glitch.3dm

EDITED: 2 May 2014 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

Previous
Next
 From:  BurrMan
6659.25 In reply to 6659.24 
Frenchy,
"""""""""Except maybe some lines and curves of the Sphere ?"""""""""

The curves/lines need more points. Are those "2 point entities?"
  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.26 In reply to 6659.18 
"""""BurrMan, all you need with that script is enter - RMD and it will produce randomely distorted curve, or RMD*10, RMD*20 etc..."""

Perfect. Thanks Andrei.
  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.27 In reply to 6659.18 
Hi Andrei,

> It will be great to have rebuild integrated into Distort Cuves script to see imediatly
> result ant to be able to corect it on the fly.
>
> Max have no time to modify this script so may be you will help to finish it?

An updated version with rebuild built in is attached.


@Max - changes were: added a "Rebuild" checkbox and an input for number of points to use.

Added a RebuildCurve function and split init() into 2 functions init() and initpoints() so that when a rebuild option changes initpoints() can be called to extract points again.

Thanks for making this script Max!

- Michael

EDIT: updated script to copy properties on to distorted version so style and object names will persist.

EDITED: 24 Jul 2014 by MICHAEL GIBSON


  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.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
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-40  41-60  61-62