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.

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 ... 8 9 [10] 11
136
ASL Scripts / Re: script request-copy along a spline
« on: June 20, 2008, 03:15:29 am »
Kreator,
I do not understand what you meant about objects following a path/Spline in scene mode.  Are you referring to their motion?

Could you be referring to the ability to draw a spline in object mode and then be able to use that as a controller in scene mode?  I think I could write a script that could write a controller script from a spline drawn in object mode that you could cut and paste into scene mode.  Very interesting idea. 

137
ASL Scripts / Re: Script Request: Chain Link Maker
« on: June 20, 2008, 03:10:29 am »
Any script I post here is in the public domain.  It is not copyrighted or restricted in any way.  I do it because I love it and appreciate the opportunities and community that Steve has created with his very hard work.

If you have other script requests or ideas, I am happy to give it a try.

Steve, if you ever want help in developing the ASL (or any other part of Anim8or), I would love to help.

138
ASL Scripts / Re: Script Request: Chain Link Maker
« on: June 19, 2008, 04:26:31 am »
Siragin,
If you look at the topic about copy along a spline, there is a script that copies a generic mesh along a spline.  That would work for the hair application you are talking about.  My next script will probably be to simulate the functionality of the grassgen program that copies a generic mesh at the points of a second mesh with parameters for the number of copies per point, their scaling, and orientation.

139
ASL Scripts / Re: script request-copy along a spline
« on: June 18, 2008, 06:49:43 am »
Attached is the requested script.  It copies a mesh along a spline.  To use it, you must have a mesh called "copytarget" that will be copied.  You must also have a spline called "copypath".  After selecting the icon, click in the editor window to make the parametric shape of the copytarget copied along the copypath appear.  If you double-click on the parametric shape, the parameters will show:

Center parameter: 1=mesh's centroid follows spline and is the origin of rotation, 0=mesh's own coordinate system's origin follows the spline and is the origin of rotation.

X-Rotate, Y-Rotate, Z-Rotate: degrees of rotation to apply to the mesh before it follows the spline (0 to 360 degrees).

Spacing %:  Amount of spacing between copies of the mesh expressed as a multiple of the z-width of the mesh after rotation (0.001 to 10)

Note that the coordinate system of the spline has the z-axis along the spline so the mesh copies are spaced according to the z-width of the mesh after rotations are applied.

Also note that the mesh has its own coordinate system based on the values of its points regardless of how it is displayed in the editor window.  Even if you change the orientation and origin of the mesh, it retains its original point values.

*** Remember to convert the parametric shape to a mesh before using it in any other objects, in figures, or scenes.  It is totally dependent on the original "copytarget" mesh and "copypath" spline while it remains a parametric shape.  As Steve stated:  parametric scripts were never intended to work this way.  ***

One final note:  this script only works with Anim8or 0.97b (or later, when they arrive).

Please try it out and please let me know your feedback.


140
ASL Scripts / Re: Script to Generate Snail Shells
« on: June 18, 2008, 06: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?

141
ASL Scripts / Re: script request-copy along a spline
« on: June 16, 2008, 02:36:05 am »
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.

142
ASL Scripts / Re: ASL Parametric Script Questions
« on: June 14, 2008, 09: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?

143
ASL Scripts / Re: Script Request: Chain Link Maker
« on: June 13, 2008, 10: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!

144
ASL Scripts / Re: ASL Parametric Script Questions
« on: June 13, 2008, 03:54:48 pm »
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.

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

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

I'd be honored.  Thank you.

147
ASL Scripts / Re: ASL Parametric Script Questions
« on: June 12, 2008, 08: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.

148
ASL Scripts / ASL Parametric Script Questions
« on: June 12, 2008, 07: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.


149
ASL Scripts / Re: Script Request: Chain Link Maker
« on: June 12, 2008, 05: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.

150
ASL Scripts / Script to Generate Snail Shells
« on: June 11, 2008, 10: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.

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