Autodesk / Autodesk/maya-usd

[MAYA-127035] export with convertMaterialsTo=['rendermanForMaya'] does NOT export renderman material plugs' input connections

Open
#2,706 5 comments 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the bug**
Export of renderman materials plugged into the default shadingEngine plugs with shadingMode='useRegistry' and convertMaterialsTo=['rendermanForMaya'] does NOT export the renderman materials' input connections

**Steps to reproduce**
1. Create an object and assign it a renderman material (e.g. PxrMarschnerHair)
2. Give the renderman material some input connections, like a texture for it's diffuseColor plug
3. Connect the renderman material's 'Rman Surface' output into it's shadingEngine's 'Surface Shader' plug
![shading network](https://user-images.githubusercontent.com/23009972/200567653-69e1d380-3956-466d-bdfb-8e71fcc0d155.jpeg)
4. export the object with the assigned renderman material
cmds.mayaUSDExport(file=output_filepath, selection=True, shadingMode='useRegistry', convertMaterialsTo=['rendermanForMaya'])
![scene](https://user-images.githubusercontent.com/23009972/200568139-1522353c-9227-4a7e-babb-eb27d4fd2bfe.jpeg)
5. inspect the usd file - the renderman shader's Id is correctly identified, but it's inputs are NOT exported
![usd_view](https://user-images.githubusercontent.com/23009972/200571504-2ff6853a-588a-4f2d-8fa1-b1c000e5dbce.jpeg)

**Expected behavior**
the renderman shader's input connection should also be exported if it is connected to the default shadingEngine plug.

**Attachments**
[test_scene.zip](https://github.com/Autodesk/maya-usd/files/9961360/test_scene.zip)

**Specs (if applicable):**
- OS & version centos 7
- Compiler & version gcc 6.3.1
- Maya version Maya 2019u2
- Maya USD commit SHA: 734b6cf7d / tag 0.20.0
- Pixar USD commit SHA: faed18ce6 / tag 21.11

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.