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"

Pages: 1 [2] 3 4

Author Topic: Script Request: Chain Link Maker  (Read 75650 times)

Tanzim

  • Guest
Re: Script Request: Chain Link Maker
« Reply #15 on: June 10, 2008, 09:18:57 am »

That was the latest script (chain_maker_3)
But I'll try again.
Logged

NickE

  • Full Member
  • ***
  • Posts: 168
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #16 on: June 10, 2008, 09:27:12 am »

Tanzim (and everyone),

The script will only work in the latest version: 0.97b.  Steve added that functionality to that version.  It will not work in any earlier version.
Logged

NickE

  • Full Member
  • ***
  • Posts: 168
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #17 on: June 10, 2008, 12:44:34 pm »

Attached is the latest version of chain_maker.  It now has functionality for elongated chains in the $stretch parameter.  If the $stretch parameter is set to zero, you will get the round links.

Please post questions and comments.
Logged

spicy

  • Sr. Member
  • ****
  • Posts: 546
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #18 on: June 10, 2008, 01:39:40 pm »

Cool script there NickE!
Logged

NickE

  • Full Member
  • ***
  • Posts: 168
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #19 on: June 10, 2008, 06:39:11 pm »

Attached is yet another version of chain_maker.  This one fixes the flipped normals problem of version 4 posted earlier today.
Logged

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #20 on: June 11, 2008, 03:48:14 am »

Thanks NickE!  Here's a render with your script (I rotated a few links after to make it more natural.)
Logged

spicy

  • Sr. Member
  • ****
  • Posts: 546
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #21 on: June 11, 2008, 01:27:08 pm »

Cool chains guys, hiho where did you get your chain texture from?
Logged

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #22 on: June 11, 2008, 07:39:16 pm »

Spicy:  I made the chain texture myself.  Though you can download it from this thread:  http://anim8or.org/forums/index.php/topic,675.0.html

NickE:  There was another request from anim8or.org that I completely agree with if it isn't too much trouble:
It would be nice to have a pop-up box that asks for options like a parametric shape, nonetheless, kudos to NickE, for a great script.

Then we could have options as in a parametric script to fill in that we could see update instead of guessing and checking using the script.  It would be awesome, but if it's not possible no worries because you've done great already!
Logged

NickE

  • Full Member
  • ***
  • Posts: 168
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #23 on: June 12, 2008, 01:27:53 pm »

I have adapted the chain_maker.txt script to be a parametric plugin script.  There are some issues, though.  I am going to do another post with questions about scripts to try to resolve these issues.

It seems that parametric plugin scripts have a couple of "features" that make using the chain_maker parametric plugin a little more challenging:

To activate a plugin, you select the icon, then click or click-drag in the editor window.  This, in effect, does two things:
1) De-selects anything you have previously selected (this makes sense, since the script is creating a new shape that is automatically selected)
2) Sets the origin point of the parametric shape created by the script (also makes sense, since most of the parametric shape scripts use a drag sizing method)

The chain_maker parametric script can work around (1), but you have to rename the path you want to follow so that it is pre-pended with the word "chain".  For example: rename "path02" to "chainpath02".  Click on the "chain path" icon, then click anywhere in the editor window.  The chain that is created will follow the path, but be offset to whereever you clicked.  You will have to manually move it back into position.  I designed the icon to help you remember that you have to rename the path you want to follow.  I toyed with the idea of having the script rename the path back to just "pathXX" after creating the chain, but decided against it.

Another issue is that the created parametric object is a single shape.  Even if you have multiple paths all renamed chainpathXX, the chains created will all be one shape, even though they follow different paths.  To do the inevitable tweaking of a few links that do not turn the corners properly, you must convert the parametric shape to a mesh.  You can then access individual links by going to point editor mode, using the face selector to select a face of the link you want to adjust.  Use "G" to "grow" the selection to the full link.  Then use "t" to select the edges.  You can now move, rotate, delete, etc. that individual link.  Whew!

The upside to having a parametric script, though, is that you can immediately see the results of tweaking the parameters and get that chain looking just as you like it.

So, it is do-able, just less than convenient and intuitive.  Also, you can use the parametric plugin version to find the parameters you like best for your application and then edit the other version to reflect those parameters.

Please let me know what you think.
Logged

karate5662

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • my mini city
Re: Script Request: Chain Link Maker
« Reply #24 on: June 12, 2008, 03:34:49 pm »

it works quite well, nice work.

I found that to make a single link part of another mesh, you can select a single face on that particular link, then you can use Shift+G to grow the selection to the full link. tho make it a seperate mesh, you can Shift+G.
Logged

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #25 on: June 12, 2008, 09:28:51 pm »

karate:  you can simply press 'c' instead of pressing "shift + g" repeatedly.
Logged

karate5662

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • my mini city
Re: Script Request: Chain Link Maker
« Reply #26 on: June 12, 2008, 10:17:18 pm »

I just copied what he had in the post above mine.
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #27 on: June 13, 2008, 03:06:14 am »

Nice chains, guys!  NickE, mind if I post the script on the Anim8or scripts page?  Anh hihosilver, can I use your render?
Logged

NickE

  • Full Member
  • ***
  • Posts: 168
    • View Profile
Re: Script Request: Chain Link Maker
« Reply #28 on: June 13, 2008, 09:09:29 am »

Steve,

I'd be honored.  Thank you.
Logged

3Dgeek11

  • Sr. Member
  • ****
  • Posts: 541
  • Roll Tide.
    • View Profile
    • My DeviantART
Re: Script Request: Chain Link Maker
« Reply #29 on: June 13, 2008, 10:34:16 am »

hey, I was wondering one little question about scripts:

Are you allowed to use scripts made by people like NickE and other people in commercial work? just wondering.

Great work, NickE!

Great render, hihosilver. how'd you get the shadow?
Logged
Pages: 1 [2] 3 4