View Single Post
# 1 07-12-2016 , 01:06 AM
Registered User
Join Date: Mar 2013
Location: Philippines
Posts: 10

little problem with mel script

Hello
I want a script that delete all the expression assigned to a shape.
Let say for exemple in my scene a have a number of circle and each circle has some expression.

I want to select a specific circle and delete all the expression assigned to it. i write with lines

string $selection[] = `ls -sl`;
for($obj in $selection){
delete `ls -type expression`;
}

but the problem is that with this script all the expression in the scene has been deleted .