Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Script idea  (Read 5553 times)

Mr.Smeagol

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Anim8or The Movie Project
Script idea
« on: July 28, 2008, 11: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, 12:14:57 pm »

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, 01:31:59 pm by fik »
Logged

headwax

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

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 30, 2008, 02:56:26 am »

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: 157
    • View Profile
Re: Script idea
« Reply #4 on: July 30, 2008, 03:09:27 am »

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 30, 2008, 03:14:09 am »

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, 12:23:26 pm by Mr.Smeagol »
Logged

NickE

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: Script idea
« Reply #6 on: July 30, 2008, 02:46:59 pm »

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, 03:26:51 pm »

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, 05:29:56 pm »

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