try like this
cmds.sets (e=True,forceElement=myBlinn+"SG")
not a solution , i am sure but it will help you
On Sun, Nov 23, 2008 at 7:42 PM, luigi <[EMAIL PROTECTED]> wrote:
>
> 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.
-~----------~----~----~----~------~----~------~--~---