Author Topic: Maya 2.0.1 Plugin  (Read 18821 times)

Hello Maya users!

We are very excited to announce Maya 2.0.1 plugin has been released!

Please take a look at the official announcement here.
https://www.substance3d.com/blog/substance-maya-rendering-future

You can download the plugin from our download page.
https://www.substance3d.com/buy/download

We have also updated the documentation for the new 2.0.1 version:
https://docs.substance3d.com/integrations/maya-172825672.html

Cheers,
Wes
Integrations Product Manager / Training
wes.mcdermott@allegorithmic.com
Twitter: The3DNinja

With the new maya plugin and creating a renderman graph you get the following error while applying the material

Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Bamboo_Fence_Normal.png #

there's a U with 2 dots above it character where the path should say "Maya2019", not sure why it gets messed up there.

It looks like a unicode issue of some kind. I can try to reproduce it.
Software Engineer, Integrations
Maya 2.0, 3ds Max & Modo
galen.helfter@allegorithmic.com

Hi Wes,

this sounds great! I just tried it out, but I have the problem that all outputs have been created, but the material and of course the connections to the material not. I tried it with Vray Next and Arnold.
This is the error message:
Error: line 1: RuntimeError: file C:/Program Files/Allegorithmic/Substance in Maya/2019/plug-ins\substance\maya\core\hypershade.py line 8: Error occurred during execution of MEL script
Line 1.50: Invalid redeclaration of variable "$res" as a different type. //

Am I the only one with this problem?

Thank you :)

Has something else declared a global variable $res? I can check if we're doing something wrong there.
Software Engineer, Integrations
Maya 2.0, 3ds Max & Modo
galen.helfter@allegorithmic.com

Hi Galen,

I don't know  :-\
But it's nor working for me and here come
 the full script editor notifications:

shadingNode -asTexture substanceNode;
// substanceNode1 //
shadingNode -asUtility place2dTexture;
// place2dTexture1 //
connectAttr place2dTexture1.outUV substanceNode1.uv;
// Connected place2dTexture1.outUV to substanceNode1.uvCoord. //
connectAttr place2dTexture1.outUvFilterSize substanceNode1.uvFilterSize;
// Connected place2dTexture1.outUvFilterSize to substanceNode1.uvFilterSize. //
// Warning: V-Ray : 'substanceNode1.outColor' (type: substanceNode) is not expected as texture input to 'internal_standInShader.incandescence'. //
// Substance - Rendering substanceNode1
// Substance - Render completed for substanceNode1
// Warning: V-Ray : 'substanceNode1.outColor' (type: substanceNode) is not expected as texture input to 'internal_standInShader.incandescence'. //
// Warning: V-Ray : 'substanceNode1.outColor' (type: substanceNode) is not expected as texture input to 'internal_standInShader.incandescence'. //
// Warning: V-Ray : 'substanceNode1.outColor' (type: substanceNode) is not expected as texture input to 'internal_standInShader.incandescence'. //
# Warning: Substance Workflow - Output ambientOcclusion not found #
# Warning: Substance Workflow - Output emissive not found #
# Substance - Rendering substanceNode1 #
# Substance - Rendering substanceNode1 #
# Substance - Render completed for substanceNode1 #
// Error: global string $gHypershadeNodeEditor;string $res = $gHypershadeNodeEditor; //
// Error: Line 1.50: Invalid redeclaration of variable "$res" as a different type. //
// Error: line 1: RuntimeError: file C:/Program Files/Allegorithmic/Substance in Maya/2019/plug-ins\substance\maya\core\hypershade.py line 8: Error occurred during execution of MEL script
Line 1.50: Invalid redeclaration of variable "$res" as a different type. //

Do you have any idea??

Thank you!

Velina

This is very cool!  Have been following the tutorial and playing with the options. Wonderful plugin!

One problem is that I am getting 16-bit outputs for color maps/textures by default, rather than 8-bit outputs (and baked textures).  How can I get 8-bit outputs, instead? (Have fiddled with this a lot, but not been able to find a way.)

Second question - low priority for me.....Is a Maxwell Shader Network planned?

In Designer are the outputs set as 16-bit for that material?

Right now, the plugin honors whatever is set in Designer. In the future, we should allow this to be overridden inside the plugin.

There should be a maxwell network already in the plugin.
Last Edit: September 05, 2019, 01:33:09 pm
Software Engineer, Integrations
Maya 2.0, 3ds Max & Modo
galen.helfter@allegorithmic.com

Tried it out with trying to create a Renderman shader network.  I builds the network, but the shader doesnt show up on the object.

Creating an Arnold shader network works fine for comparison. 

Here's the output of the script editor
// Substance - Rendering substanceNode1
// Substance - Render completed for substanceNode1
# Substance - Rendering substanceNode1
# Substance - Rendering substanceNode1
# Substance - Render completed for substanceNode1
# Warning: 'PxrSurface1.outColor' is already connected to 'set1.rman__surface'. #
# Warning: 'PxrSurface1.outColor' is already connected to 'set1.rman__surface'. #
# Warning: 'PxrSurface1.outColor' is already connected to 'set1.rman__surface'. #
// Substance - Render completed for substanceNode1
defaultNavigation -defaultTraversal -destination "PxrSurface1.diffuseColor";
// PxrMix2 //
evalDeferred( "showEditorNoPopup PxrMix2");
polyPrimitive -r 1 -l 0.4036 -ax 0 1 0 -pt 0  -cuv 4 -ch 1;
// pSolid1 polyPrimitiveMisc1 //
defaultNavigation -source PxrSurface1 -destination |pSolid1|pSolidShape1.instObjGroups[0] -connectToExisting;
// Dropped PxrSurface1 onto pSolid1 //
select -r pSolid1 ;
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_basecolor.png #
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_metallic.png #
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_normal.exr #
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_roughness.png #
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_basecolor.png #
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_metallic.png #
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_normal.exr #
# Warning: [rfm]  WARNING:  (MainThread)  core add_texture: image path contains non-ASCII characters: ignoring C:/Users/grumb/Documents/maya9/substance/baked_images/Plastic_Cables_Braided_roughness.png #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: line 1: AttributeError: file C:\Program Files\Pixar\RenderManForMaya-22.6\scripts\rfm2\txmanager_maya.py line 455: 'NoneType' object has no attribute 'is_dirty' #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_basecolor.png #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_metallic.png #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_normal.exr #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_roughness.png #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_basecolor.png #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_metallic.png #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_normal.exr #
# Error: [rfm]    ERROR:  (MainThread)  <maya console> <module>: TxManager query failed ! -> C:/Users/grumb/Documents/maya9\substance/baked_images/Plastic_Cables_Braided_roughness.png #
defaultNavigation -defaultTraversal -destination "PxrSurface1.diffuseColor";
// Result: PxrMix2 //
evalDeferred( "showEditorNoPopup PxrMix2");
defaultNavigation -defaultTraversal -destination "PxrMix2.color2";
// Result: PxrGamma1 //
evalDeferred( "showEditorNoPopup PxrGamma1");
defaultNavigation -defaultTraversal -destination "PxrGamma1.inputRGB";
// Result: file1 //
evalDeferred( "showEditorNoPopup file1");
// Error: file: C:/ProgramData/Redshift/Plugins/Maya/Common/scripts/redshiftCustomNodeUI.mel line 599: No object matches name: file1.rsFilterEnable //
requires -nodeType "substanceNode" -nodeType "substanceOutputNode" "substancemaya" "2.0.1";
requires "OpenEXRLoader" "2012";
requires -nodeType "PxrNormalMap" -nodeType "PxrSurface" -nodeType "PxrGamma" -nodeType "PxrInvert" -nodeType "PxrMix" "RenderMan_for_Maya.py" "22.6 @ 1987751";
requires "mtoa" "3.2.2";
// File read in  0.094 seconds. //
# [rfm]     INFO:  (MainThread)  txmanager_maya parse_new_maya_scene: New scene: resetting texture manager. #
// Error: file: C:/Program Files/Autodesk/Maya2019/scripts/AETemplates/AEfileTemplate.mel line 107: setAttr: The attribute 'file1.fileTextureName' is locked or connected and cannot be modified. //
[rfm]     INFO:  (txmgr_worker_0)  core tx_make_process: Converted in 00m:03s : u'C:/Users/grumb/Documents/maya/2019/substance/baked_images/Plastic_Cables_Braided_basecolor.png.tex'
[rfm]     INFO:  (txmgr_worker_1)  core tx_make_process: Converted in 00m:03s : u'C:/Users/grumb/Documents/maya/2019/substance/baked_images/Plastic_Cables_Braided_metallic.png.tex'
// Warning: [rfm]  WARNING:  (txmgr_worker_0)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'file1.fileTextureName' is locked or connected and cannot be modified.\n" //
// Warning: [rfm]  WARNING:  (txmgr_worker_1)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'file2.fileTextureName' is locked or connected and cannot be modified.\n" //
// Warning: [rfm]  WARNING:  (txmgr_worker_0)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'pasted__file1.fileTextureName' is locked or connected and cannot be modified.\n" //
// Warning: [rfm]  WARNING:  (txmgr_worker_1)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'pasted__file2.fileTextureName' is locked or connected and cannot be modified.\n" //
[rfm]     INFO:  (txmgr_worker_1)  core tx_make_process: Converted in 00m:02s : u'C:/Users/grumb/Documents/maya/2019/substance/baked_images/Plastic_Cables_Braided_roughness.png.tex'
// Warning: [rfm]  WARNING:  (txmgr_worker_1)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'file4.fileTextureName' is locked or connected and cannot be modified.\n" //
// Warning: [rfm]  WARNING:  (txmgr_worker_1)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'pasted__file4.fileTextureName' is locked or connected and cannot be modified.\n" //
[rfm]     INFO:  (txmgr_worker_0)  core tx_make_process: Converted in 00m:04s : u'C:/Users/grumb/Documents/maya/2019/substance/baked_images/Plastic_Cables_Braided_normal.exr.tex'
// Warning: [rfm]  WARNING:  (txmgr_worker_0)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'file3.fileTextureName' is locked or connected and cannot be modified.\n" //
// Warning: [rfm]  WARNING:  (txmgr_worker_0)  txfile emit_done_callback: done_callback FAILED = u"setAttr: The attribute 'pasted__file3.fileTextureName' is locked or connected and cannot be modified.\n" //