how to change the render filter via command

how to change the render filter via command

Amit_Karny_עמית_קרני
Advocate Advocate
395 Views
2 Replies
Message 1 of 3

how to change the render filter via command

Amit_Karny_עמית_קרני
Advocate
Advocate

Hey there!

I do have plenty of scene I should change it filter via Arnold render.

 

dfsdfs.JPG

 

I look for any simple new shelf item with a command.

 

to this end I tried either

 

setAttr "defaultArnoldFilter.type" 12;    
setAttr "defaultArnoldFilter.width" 2;

 or 

setAttr "defaultArnoldFilter.type" contour;    
setAttr "defaultArnoldFilter.width" 2;

 but none of them had change the type.

 

Maya 2020.

 

Thanks in advance.

0 Likes
Accepted solutions (1)
396 Views
2 Replies
Replies (2)
Message 2 of 3

Kahylan
Advisor
Advisor
Accepted solution

Hi!

 

This is the command you are looking for:

 

setAttr -type "string" "defaultArnoldFilter.aiTranslator" "contour" ;

 

 

By the way, here is a handy script to just print out every attribute on a node plus the value currently assosiated with it, it helps a lot in finding weirdly named attributes:

proc attrValues(string $node){
    string $attrs[] = `listAttr $node`;
    for ($a  in  $attrs){
        if ($a != "message"){
            $v = getAttr ($node +"."+ $a);
            print($a + ":" + $v + "\n");
        }
    }
}

attrValues("defaultArnoldFilter")

I hope it helps!

0 Likes
Message 3 of 3

Amit_Karny_עמית_קרני
Advocate
Advocate
Thanks a lot!!! Works perfect.
0 Likes