That doesnt work..
MDGMessage.addNodeAddedCallback( newNodeCB, 'directionalLight')
what is the proper syntax?

On 6 August 2015 at 23:02, Ravi Jagannadhan <[email protected]> wrote:

> Filter in the callback for your specific node type?
>
> On Thu, Aug 6, 2015 at 3:00 PM, Arvid Schneider <[email protected]>
> wrote:
>
>> How would I create a callback that fires when a specific node type is
>> created?
>> I know about: MDGMessage.addNodeAddedCallback( function )
>> but that registers any node created. I want to limit that.
>> Someone an idea?
>> Arvid
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/62af34c5-03e1-4064-86c3-76e11df510b9%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/62af34c5-03e1-4064-86c3-76e11df510b9%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Where we have strong emotions, we're liable to fool ourselves - Carl Sagan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CADHeb2azw6SZ7_asi6i7Le%2BD-7DyhfstwR2mbTatp4B1L%3D3Y%2BA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CADHeb2azw6SZ7_asi6i7Le%2BD-7DyhfstwR2mbTatp4B1L%3D3Y%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Arvid Schneider
Look Develpopment | Lighting TD | Show TD
www.arvidschneider.com

Mobil DE: (+49) 170 321 0074
Mobile UK: (+44) 744 824 6973
Mail: [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CADrk2uQX_EQu2KCnR9ud1TUiPU-AWR%3DFhnB%3D6cUVDSdUQ9u5KA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to