Anim8or Community
General Category => ASL Scripts => Topic started by: Mr.Smeagol on July 28, 2008, 07:14:37 am
-
I don't know how to make ASL scripts but I really could use script which would move selected points in random directions for specified distance.
I don't know if that's hard/easy possible/impossible to script but if anyone has any spare time and feels like scripting i would be thankfull.
Main reason for this is modeling of rocks, which always and up looking too artificial and i have to randomize all points by hand to make it look a bit more natural, which takes lot of time, and i have many rocks to do :)
-
You could try this one I wrote a while ago http://www.anim8or.com/ubb/Forum6/HTML/000103.html (http://www.anim8or.com/ubb/Forum6/HTML/000103.html)
Edit - Oops link to original post now working i hope :)
-
Hya Fix that link doesn't lead to a specific page :(
Mons. Smeagol: Terranim8or has a noise plugin - I think.
-
thanks for replys, I tried the script and most of the time it works and is exactly what i had in mind. however sometimes it just doesn't work - does nothing, i checked the object is mesh and everything that it needs to be for it to work ofc.
Terranimator noise plugin wouldn't really work for me couse i have thousands of rocks to model in their exact positions where they should be (boring yea... tell me about it) so exporting into terranim8or just inst convenient for me at all. thanks anyways
I'll be using the script whenever it decides to work for me. If i get any additional information on when it doesn't work exactly I'll post it here.
thanks again ;)
-
If you can give a better idea of what you need, I might be able to help you out with a script.
1) Are you trying to draw each rock separately because they need to have a basic overall shape, but are too artificial looking and thus need a bit of randomization?
2) You would like to generate thousands of randomized rocks by script all at once, but precisely placed?
3) Something else?
-
i need rocks to look like they really look in real world, at least to get the shape and size similar, and location exact. So i cant randomize their location. I use one rock, copy and then paste it and non uniform scale / rotate it to make it fit like some other rock. On some occasions rocks are too specific and i cant do it the easy way without it being obviously weird and i have to model it point by point and then they do look too artificial. so i would randomize them if i model them and i would randomize them when i copy paste the existing rock to make the rocks be more different from each other.
Edit: I noticed the script cant be undoed when once applied to an object. That's pretty unconvenient since you cant know how object will look exactly after noisedeform
-
It is true that the script actions cannot be undone, but the script can make a copy of the original with the randomization applied. That way, you can apply the script, move the copy to its destination, repeat. Another option would be to have a parameter where you can specify the number of copies you would like - each a bit different - also leaving the original intact.
-
oh well, but that wouldn't be more efficient than copy pasting object yourself for a backup. more of a problem here is that script doesn't always work. some meshes just seem immune to it lol.
-
Don't know why it dosen't work for all. Should work for any mesh. Strange ???