-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
1.Import the attached .abc file into Maya
2.Run the following MEL script
shadingNode -asShader phong;
// Result: phong1 //
sets -renderable true -noSurfaceShader true -empty -name phong1SG;
// Result: phong1SG //
connectAttr -f phong1.outColor phong1SG.surfaceShader;
// Result: Connected phong1.outColor to phong1SG.surfaceShader. //
setAttr "phong1.color" -type double3 0 1 0 ;
select -r -ne ball_clusters_top ;
defaultNavigation -ce -d ball_clusters_top.surfaceShader -source phong1;
connectAttr -f phong1.outColor ball_clusters_top.surfaceShader;
// Result: Connected phong1.outColor to ball_clusters_top.surfaceShader.
3.Render the scene
What is the expected output? What do you see instead?
Expected: Rendered ball with the top half in green color
Result: nothing
What version of the product are you using? On what operating system?
Maya 2015, Alembic 1.5.0, Windows 7
Please provide any additional information below.
Issue happens on animated mesh. For shadingGroup to work on animated mesh, the
DG graph has to be different, it's a chain of (groupParts + groupId) nodes with
the Polymesh node connected at the end.
Suggested fix:
- instead of creating a ShadingEngine node and connecting it manually,
AbcImport should just call `sets` command
- Also, sets command has to be called after Alembic Node is connected to Mesh
node, otherwise the command wouldn't recognize that it's an animated mesh.
Original issue reported on code.google.com by nghoch...@gmail.com on 7 May 2014 at 4:13
Attachments: