Clear selected MASH Placer node

Select the MASH network and run this simple script:

//MASH Placer Clearer
{
    string $sel[] = `ls -sl`;
    
    if (($sel[0] + "_Placer.paintJson") !=0)
    {
        setAttr ($sel[0] + "_Placer.paintJson") -type "string" "{}";
    }
    else
    {
        print "There is no Placer node in this MASH!";
    }
}

Cheers, D

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.