Hello, I'm trying to execute this code from the hyperShade python
command documentation:
-------------------------------------------------------------------------------------------
import maya.cmds as cmds
cmds.sphere()
cmds.cone()
myBlinn = cmds.shadingNode('blinn', asShader=True)
cmds.select( 'nurbsSphere1' )
cmds.hyperShade( myBlinn, assign=True )
cmds.select( cl=True )
cmds.hyperShade( objects=myBlinn )
blinn = cmds.createNode('blinn')
cmds.select( 'lambert1', blinn )
cmds.hyperShade( objects='' )
-------------------------------------------------------------------------------------------
And I'm getting this error:
# Error: No shader is selected to be assigned #
# Error: Shader blinn1 not found #
The blinn shader is created but not assigned... what am i missing??
thanks
/lui
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---