BadG3r
02-24-2009, 09:02 AM
Hey guys!
I tried to do a simple thing, but somehow I got this error.
// Error: Error while parsing arguments. //
So, I guess it is how I try to implement the objects name in the moveVertex command. Everything else I checked, so I believe it must be the $obj variable. How can I reference the name in the script?
string $objs[] = `ls -sl`;
string $obj;
for ($obj in $objs) {
$rand = rand (25);
vector $t = dnoise (<<$rand,$rand*2,$rand*4>>);
moveVertexAlongDirection -d ($t) -m ($t) $obj.cv[0:5];
}
igor
I tried to do a simple thing, but somehow I got this error.
// Error: Error while parsing arguments. //
So, I guess it is how I try to implement the objects name in the moveVertex command. Everything else I checked, so I believe it must be the $obj variable. How can I reference the name in the script?
string $objs[] = `ls -sl`;
string $obj;
for ($obj in $objs) {
$rand = rand (25);
vector $t = dnoise (<<$rand,$rand*2,$rand*4>>);
moveVertexAlongDirection -d ($t) -m ($t) $obj.cv[0:5];
}
igor
