Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Script idea  (Read 14543 times)

Mr.Smeagol

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Anim8or The Movie Project
Script idea
« 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 :)
Logged

fik

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Script idea
« Reply #1 on: July 28, 2008, 08:14:57 am »

You could try this one I wrote a while ago http://www.anim8or.com/ubb/Forum6/HTML/000103.html

Edit - Oops link to original post now working i hope :)
« Last Edit: July 28, 2008, 09:31:59 am by fik »
Logged

headwax

  • Sr. Member
  • ****
  • Posts: 600
    • View Profile
    • Headwax's Website
Re: Script idea
« Reply #2 on: July 28, 2008, 08:18:44 am »

Hya Fix that link doesn't lead to a specific page :(

Mons. Smeagol: Terranim8or has a noise plugin - I think.
Logged

Mr.Smeagol

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Anim8or The Movie Project
Re: Script idea
« Reply #3 on: July 29, 2008, 10:56:26 pm »

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 ;)
Logged

NickE

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: Script idea
« Reply #4 on: July 29, 2008, 11:09:27 pm »

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?

Logged

Mr.Smeagol

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Anim8or The Movie Project
Re: Script idea
« Reply #5 on: July 29, 2008, 11:14:09 pm »

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
« Last Edit: July 30, 2008, 08:23:26 am by Mr.Smeagol »
Logged

NickE

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: Script idea
« Reply #6 on: July 30, 2008, 10:46:59 am »

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

Mr.Smeagol

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Anim8or The Movie Project
Re: Script idea
« Reply #7 on: July 30, 2008, 11:26:51 am »

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

fik

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Script idea
« Reply #8 on: July 30, 2008, 01:29:56 pm »

Don't know why it dosen't work for all. Should work for any mesh. Strange  ???
Logged