[C++] Setting a transform node as an input to a custom deformer node.

29 views
Skip to first unread message

Cameron Fulton

unread,
Feb 29, 2016, 7:25:31 PM2/29/16
to Python Programming for Autodesk Maya
Hi all,

So I'm making a custom deform node in C++ and ran into something that I'm a bit stuck on.
Basically, I want a input that is a group node. Here's how it needs to act.
  • Connect group node as input to Deformer
  • In compute, deformer gets children of group and gets the transforms of each child
  • When a childs transform is change, run compute.
The only problem is I don't know the best way to go about doing that. Would it be better for me to make my input a list of kDouble3 and just connect each child? Or is there a better way of solving this....

Thanks in advance,
Cameron

Chad Vernon

unread,
Mar 1, 2016, 2:56:56 PM3/1/16
to Python Programming for Autodesk Maya
You should connect the worldMatrix of each child to the deformer.

Cameron Fulton

unread,
Mar 1, 2016, 4:05:00 PM3/1/16
to python_in...@googlegroups.com
Yeah, thats what I ended up doing and it works perfectly. I was just over thinking it with the group node thing. Thanks for the reply!

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ce6da999-41ae-4774-841b-9783fb8cce0e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages