GrogMcGee
05-29-2009, 02:54 PM
[EDIT: Solved... sort of]
This seems like it should be really obvious - I'm still incredibly new to mel scripting; but how do I store the selected object for later use?
eg, I want to duplicate an object and the combine the duplicate and the original ... I'm completely failing to see how I do that.
----
Okay so I've solved my problem for the time being I'm still curious about it all though so:
this script works:
{
string $original[]=`ls -sl`;
duplicate $original;
string $new[]=`ls -sl`;
perfromPolyNormal 0 -1 0;
polyUnite -object 1 $original $new;
};
this didn't
{
string $original[]=`ls -sl`;
string $new[];
duplicate $original;
$new[]=`ls -sl`;
perfromPolyNormal 0 -1 0;
polyUnite -object 1 $original $new;
};
I think it's stupidly obvious and I'm just being dumb... but a little guidance can go a long way.
Also, is that the correct way to store and object?
This seems like it should be really obvious - I'm still incredibly new to mel scripting; but how do I store the selected object for later use?
eg, I want to duplicate an object and the combine the duplicate and the original ... I'm completely failing to see how I do that.
----
Okay so I've solved my problem for the time being I'm still curious about it all though so:
this script works:
{
string $original[]=`ls -sl`;
duplicate $original;
string $new[]=`ls -sl`;
perfromPolyNormal 0 -1 0;
polyUnite -object 1 $original $new;
};
this didn't
{
string $original[]=`ls -sl`;
string $new[];
duplicate $original;
$new[]=`ls -sl`;
perfromPolyNormal 0 -1 0;
polyUnite -object 1 $original $new;
};
I think it's stupidly obvious and I'm just being dumb... but a little guidance can go a long way.
Also, is that the correct way to store and object?
