Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

createStandIn doesn't work in MtoA 3.0.0.x

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
551 Views, 2 Replies

createStandIn doesn't work in MtoA 3.0.0.x

Hi,

We noticed that the function createStandIn (in mtoa/core.py) has switched from using pyMel to maya cmds. The problem is that the createNode function in pyMel returns a node, whereas the cmds version of the same returns a string. This makes the line standIn.dso.set(path) not working.

Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3
Stephen.Blair
in reply to: Anonymous

Thanks for reporting, I've logged it.

You'll have to workaround it in your script (or patch core.py) until we fix it. For example:

import mtoa.core
standin = mtoa.core.createStandIn()
path = "C:/Users/blairs/Documents/maya/projects/default/data/example_standin.ass"
cmds.setAttr('{}.dso'.format(standin), path, type="string")


// Stephen Blair
// Arnold Renderer Support
Message 3 of 3
Anonymous
in reply to: Anonymous

Thanks, that's exactly what we did in our code 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report