Override default mtoa.mtd file

Override default mtoa.mtd file

jpmacey
Explorer Explorer
973 Views
5 Replies
Message 1 of 6

Override default mtoa.mtd file

jpmacey
Explorer
Explorer

Hi All,

We have a number of machines that students use for Arnold (RHEL 7.5) and Maya 2018. The students do not have access to the mtoa.mtd file and occasionally need to edit them (for example to make the OSL node visible).

This is difficult to manage as students will use many machines etc so I was wondering if there is a way to override the default file and allow a local one to be read (perhaps by setting a flag in Maya.env)

Alternatively is there any scripting way to load aiOslShader and set the maya.hide option to false? As this will save our sys-admins loads of work.

Cheers

Jon

0 Likes
974 Views
5 Replies
Replies (5)
Message 2 of 6

Stephen.Blair
Community Manager
Community Manager

Sorry, but the metadata file has to be in the same folder as the mtoa plugin

The createNode command can create an aiOslShader node:

createNode "aiOslShader"


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

jpmacey
Explorer
Explorer

Tried that, it doesn't work

```

createNode "aiOslShader";

// Warning: line 1: Unrecognized node type 'aiOslShader'; preserving node information during this session. //

// Result: unknown2 //

createNode aiFlat; // Result: aiFlat1 //

```

guess I'm going to have to edit 200 mtd files!

0 Likes
Message 4 of 6

jpmacey
Explorer
Explorer

I'm on Mac at the moment, not it is not there (unless I modify the mtd file to make maya.hide true ) then it appears and I can create etc.

0 Likes
Message 5 of 6

jpmacey
Explorer
Explorer

I'm on 2.0.1 so that could be the issue.

0 Likes
Message 6 of 6

Stephen.Blair
Community Manager
Community Manager

Ok, with anything before MtoA 3.1.2 you won't be able to create an aiOslShader node with createNode

You have to change the metadata in the mtd file



// Stephen Blair
// Arnold Renderer Support
0 Likes