aiImage autoTx default to 0

aiImage autoTx default to 0

Anonymous
Not applicable
549 Views
2 Replies
Message 1 of 3

aiImage autoTx default to 0

Anonymous
Not applicable

Hi,

i'm struggling to find a way for setting autoTx attribute in aiImage node to False by default.

My approach has been to edit the mtoa.mtd file and try to give a value for that, but I found no success. This is what I tried:

[attr auto_tx]

default BOOL false


I also tried [attr autoTx], setting the type to INT 0, maya.autoTx BOOL 0... I don't know how many options I have already tried, but couldn't make it work.


Do you know how this would be possible?

Thanks!

0 Likes
550 Views
2 Replies
Replies (2)
Message 2 of 3

Stephen.Blair
Community Manager
Community Manager

You can turn off autotx in the Render Settings with a UserSetup.py in your Maya scripts folder.


import mtoa.hooks
def setupOptions(options):
    cmds.setAttr('{}.autotx'.format(options), 0);
mtoa.hooks.setupOptions = setupOptions


// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi Stephen,

thanks for the info. In fact I already did that previously, but didn't know it would override each File or aiImage nodes behaviour... and it does 🙂


Thanks again

0 Likes