Wrap deformer connection

556 views
Skip to first unread message

DDri...@hotmail.com

unread,
Dec 5, 2015, 2:49:29 PM12/5/15
to Python Programming for Autodesk Maya
Can anyone tell me how to connect a wrap deformer.
I have a full body where all the shape going to be connected and then need to wrap my cut head to the full body and extract those shape.



#######
import maya.cmds as cmds

cmds.blendShape( 'BS_Happy', 'BS_Sad', 'BS_newNeutral', 'BaseMesh' )

cmds.move( 0, 0, 0, 'BaseMesh','BaseMeshCut', absolute=True )

cmds.deformer('BaseMeshCut', type='wrap')[0]
''''I guess I have to connect the attribute
#########

So the wrap is added to my BaseMeshCut but how do I connected to my base mesh?

DDim

Mahmoodreza Aarabi

unread,
Dec 6, 2015, 3:15:25 AM12/6/15
to python_in...@googlegroups.com

Hey
did you use cmds.connectAttr command?



--
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/78e542c8-b01e-4aee-9e0e-7be94423a002%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--


Bests,
madoodia

Mahmoodreza Aarabi

unread,
Dec 6, 2015, 9:09:18 AM12/6/15
to python_in...@googlegroups.com
Use http://markdown-here.com/ for highlighting your code in group
it will be show your code better
:)
--


Bests,
madoodia

DDri...@hotmail.com

unread,
Dec 6, 2015, 6:18:15 PM12/6/15
to Python Programming for Autodesk Maya, DDri...@hotmail.com
Did try but really not sure what to connect.
Whent to see in the node editor and think I have to connect 2 thing
Something like this

cmds.connectAttr ('anyObjBaseShape.worldMesh[0]', 'wrap1.basePoints[0]')

cmds.connectAttr ('anyObjShape1.worldMesh[0]', 'wrap1.driverPoints[0]')

But really not sure is this its the right way or the right connection.

Any one has an exemple to how connect the wrap the right way?

Thanks

DDim


Reply all
Reply to author
Forward
0 new messages