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: Mesh2mesh directions?  (Read 2016 times)

ADSohr

  • Full Member
  • ***
  • Posts: 181
    • View Profile
    • CGForStarters - An animation club
Mesh2mesh directions?
« on: June 03, 2010, 03:26:13 pm »

Hello,

I've been trying to use the mesh2mesh_6_wnfitt_final script, but it has not been working and I cannot find any directions on how to use it. I've got the two objects named "source" and "target".
Logged

kreator

  • Hero Member
  • *****
  • Posts: 1114
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: Mesh2mesh directions?
« Reply #1 on: June 03, 2010, 03:31:20 pm »

use "edit script" instead of running or loading it then read the text , with most scripts of this type it pays to look thru the text then you can glean the info you require, ie

Code: [Select]
/* -------USER CHANGEABLE PARAMETERS SECTION------- */

$xabsrot=0;            /* x fixed rotation amount - degrees*/
$yabsrot=90;            /* y fixed rotation amount - degrees*/
$zabsrot=0;            /* z fixed rotation amount - degrees*/

$xrot=0.0;   /* x rotation variation - degrees*/
$yrot=0.0;                /* y rotation variation - degrees*/
$zrot=0.0;                /* z rotation variation - degrees*/

$meshptfraction = 1.0;  /* fraction of mesh point to use.  If < 1 then
                           the points used are randomly distributed. >0 */

$minusemesh=1;          /* min # copies per available point */
$maxusemesh=1;          /* max # copies per available point */
$usemeshrand=0;         /* 0=use maxusemesh, 1=random amount between
                           minusemesh and maxusemesh */

$minscale=1.0;          /* minimum scale of mesh copy >0 */
$maxscale=0.5;          /* maximum scale of mesh copy */
$scalerand=1;           /* 0=use maxscale, 1=random scale between
                           minscale and maxscale */

$yoffsetfraction=0.75;     /* fraction of source object to "sink" into surface */

$usenormals=1;          /* 1=use point normals to orient,0=orient along y axis */

$useorigmin=1;          /* 1=use original minimum y point to place object */
                        /* 0=use minimum y point after all transformations */
                                   
$useverts=0;            /* 1=place copies at the vertices, 0=do not use vertices */
$usefaces=1;            /* 1=place (#sides + 1) copies on each face
                           0=do not use faces  */
                           
$usesourcemat=1;        /* 1=use original source materials and texture coords for copies
                           0=use target materials for copies */

randseed(13456);        /* change to get new sequence of random numbers */

/* -------END USER CHANGEABLE PARAMETERS SECTION------- */
Most of the writers Kuba, NickE add comments on how to use it within the script file.
« Last Edit: June 03, 2010, 03:36:14 pm by kreator »
Logged
O