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"

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - NickE

Pages: 1 ... 9 10 [11] 12
151
ASL Scripts / Re: Script to Generate Snail Shells
« on: June 18, 2008, 02:37:31 am »
Steve,
The initial post of this thread has two screen shots of the parameters used to create the shells shown in the render.  Did you want something different for the preset?

152
ASL Scripts / Re: script request-copy along a spline
« on: June 15, 2008, 10:36:05 pm »
This seems pretty straightforward, since it is only a variation on the chain_maker.  I don't think I understand everything you are saying, though.

"copypath" is the name of the spline you want to follow.
"copytarget" is what you want to copy along the spline.

What is the 10 and 1 for?  The 10 is replaced by what - a count of how many times it is copied?

How would you handle the orientation of copytarget?  What would copytarget's origin be in relation to copypath?  What is the distance between copies of copytarget?  These questions are important because you must calculate the size (length) of copytarget to space it along copypath.

Once these questions are answered, I can turn out the script pretty fast.

153
ASL Scripts / Re: ASL Parametric Script Questions
« on: June 14, 2008, 05:52:31 pm »
Steve,

Not entirely unpredictable...one must just be careful on how the script is used.

On another note, is there (or will there be) a function that will let one access the information in multiple objects in the project in the same manner as one can access the multiple shapes in an object?

154
ASL Scripts / Re: Script Request: Chain Link Maker
« on: June 13, 2008, 06:44:30 pm »
Attached are the new versions of the scripts.  The only change is the provision to have alternating links of different sizes.

There is a the parametric version and a command version.  They work the same as described earlier in this thread.

Enjoy!

155
ASL Scripts / Re: ASL Parametric Script Questions
« on: June 13, 2008, 11:54:48 am »
Steve,

I'm not sure I understand your last post.  It is entirely possible to access the other shapes in an object from a parametric script.  I do it in the parametric version of the chain_maker script.  It follows the splines that are renamed to "chainpathXX".  The only limitation was the inability to see what had been previously selected or access the coordinates of the mouse click that activated the script.

156
ASL Scripts / Re: Script to Generate Snail Shells
« on: June 13, 2008, 11:33:16 am »
I would be honored, but the honor is really yours, Steve, since all I did was slightly modify your spring script.

157
ASL Scripts / Re: Script Request: Chain Link Maker
« on: June 13, 2008, 09:09:29 am »
Steve,

I'd be honored.  Thank you.

158
ASL Scripts / Re: ASL Parametric Script Questions
« on: June 12, 2008, 04:52:03 pm »
Kubajazz,

Thank you for the compliment.  I'm glad you like it.

I did post a parametric version, but I kinda cheated.  See the post in the other thread.

159
ASL Scripts / ASL Parametric Script Questions
« on: June 12, 2008, 03:58:13 pm »
In writing the chain_maker parametric plugin, I ran across a couple of issues. I wonder if they can be addressed though some sort of work-around.

Issue 1:  I wanted to write the script such that it followed the selected path like in Steve's "spline.txt", but I discovered that the only way I could "activate" the script after the icon was pressed was to click in the editor window.  Clicking (or actually running the script - I cannot tell which) effectively de-selects the previous selected shape and automatically selects the shape created by the script.

Issue 2:  When a parametric plug-in script is run by clicking the icon, then clicking (or click-dragging) in the editor window, the parametric shape is created at the editor click coordinates and the origin is assigned at the new shape's "centroid".

Question 1:  Is there some way to store what was previously selected?  I've tried numerous things, but outside of having a separate non-parametric non-plugin script write it somewhere (like a material name or some attribute, etc.), then reading it with the actual parametric plugin script, nothing works.

Question 2:  Are the coordinates of the initial click in the editor window (after selecting the script's icon) stored someplace accessible?  I cannot find it in the documentation.  The availability of these coordinates has multiple applications.

Steve:  I love the scripting abilities of Anim8or!  If there is anything I can do to help with development of the ASL for all of Anim8or, please let me know.  I have been a programmer for a long time in multiple languages, and have written similar scripting languages for other applications.


160
ASL Scripts / Re: Script Request: Chain Link Maker
« 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.

161
ASL Scripts / Script to Generate Snail Shells
« on: June 11, 2008, 06:56:57 pm »
Back when I was going to enter the "Need for Speed" competition over on Animanon, I adapted Steve's spring script to produce pretty realistic snail shells.  Unfortunately, I ran out of time for the competition.  Here is a short clip starring a shell.

youtube.com/v/1sm-F7Gosvw[/youtube]]http://www.


Attached is the script, a sample render of two types of shells, and the parameters needed to reproduce those shells.  To produce the renders, I converted the parametric shape to a mesh, deleted the cap face, used the shell function to add thickness, and textured.

162
ASL Scripts / Re: Script Request: Chain Link Maker
« 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.

163
ASL Scripts / Re: Script Request: Chain Link Maker
« 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.

164
ASL Scripts / Re: Script Request: Chain Link Maker
« 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.

165
ASL Scripts / Re: Script Request: Chain Link Maker
« on: June 09, 2008, 11:08:15 pm »
I have fixed the link spacing error.  Read the comments in the script for hints on proper relationships between link thickness and link diameter.

I am still working on how to make an oblong link.

Pages: 1 ... 9 10 [11] 12