Hi Marcus , 

Awesome!  

Thanks , 


在 2018年1月27日星期六 UTC+8下午10:24:45,Marcus Ottosson写道:
>
> Without having tested this, and it being 3 years since I first wrote it, 
> something like this might do the trick.
>
> Replace this..
>
> server.register_function(cmds.createNode)
>
> With this..
>
> for function in dir(cmds):
>   server.register_function(getattr(cmds, function))
>
> Now you’ll have registered every single function in cmds and *should* be 
> able to call them remotely.
>
> Use at your own risk! :)
> ​
> ​
>

-- 
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/e2b065dc-6978-4271-8de3-e8731e5de3d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to