Hello,

    My first post here. I hope it's not too basic for you guys. I've been 
scripting for a while teaching myself, so please forgive my ignorance. I've 
been poking around for information on this and haven't run into the right 
post.

I have two sets of objects. One a set of base meshes, 'leafGeo_SET' and one 
a set of target meshes, 'leafTgt_SET'.

I'd like to write a for loop that will create a blend shape on each object 
in the 'leafGeo_SET' with the same indexed object in the 'leafTgt_SET'. 
Each blendshape will have only one target.  Eventually, I intend to also 
set keys in the timeline on the weights which is why I store the blendshape 
result in the variable. First things first.

Here's where i am, and getting an error... "Too many values to unpack"

import maya.cmds as cmds

#assign target and geo sets to variable without unicode in string
cmds.select('leafTgt_SET')
TGT = cmds.ls(sl=True, o=True)
cmds.select('leafGeo_SET')
GEO = cmds.ls(sl=True, o=True)

for g,t in GEO,TGT:
    #create a blendshape deformer with the objects in the list without 
testing geo and asign the output to variable BS.
    BS = cmds.blendShape(g,t)

I suspect you folks will say I'm going about it in the wrong way!

Chris






-- 
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/07c2c76a-30a2-40ce-ba00-995bc2a2486f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to