MAYA Need explaination : Add combination Target

MAYA Need explaination : Add combination Target

Anonymous
Not applicable
1,313 Views
2 Replies
Message 1 of 3

MAYA Need explaination : Add combination Target

Anonymous
Not applicable

Hello,

I am trying to script somthing around blendshapes
in my process I need to add "combinasion target" to 2 Targets

With the new shape editor there is a clickable button (which replaces the "add target" when you are selecting 2 targets), when you hit that button it does :

 

 

doCombinationShapeCreate 1 0 1 "";
sculptTarget -e -target -1 blendShape1;
blendShape -e -tc on -t |base|baseShape 3 base1 1 -w 3 1  blendShape1;
blendShape -e -rtd 0 3 blendShape1;
sculptTarget -e -target 3 blendShape1;
combinationShape -bs blendShape1 -cti 3 -cm 0 -dti 1 -dti 2;

The first line generates the rest

 

I have to understand the script for using it by my self

But when I type those 5 lines

 

sculptTarget -e -target -1 blendShape1;
blendShape -e -tc on -t |base|baseShape 3 base1 1 -w 3 1  blendShape1;
blendShape -e -rtd 0 3 blendShape1;
sculptTarget -e -target 3 blendShape1;
combinationShape -bs blendShape1 -cti 3 -cm 0 -dti 1 -dti 2;

It raises an error "// Error: line 2: No object matches name: base1 // "

 

of course because I do not have this object HOWEVER your script is using this ghost object. and there is no track for understand what and where is this base1 and how did maya creat it

 

 

also we can't select target in shape editor with script (no input no output)

If we could I would just select 2 shape and execute

doCombinationShapeCreate 1 0 1 ""

and it would work . But I can't

 

With my knowledge I can't carry on my script.
and there is no information about it anywhere.

 

hope you will have an answer. Thank you

(sorry for my approximativ english)

 

Edgard Cros

 

0 Likes
Accepted solutions (1)
1,314 Views
2 Replies
Replies (2)
Message 2 of 3

jwlove
Advocate
Advocate
Accepted solution

In your script editor in a mel tab, you could type

 

whatIs doCombinationShapeCreate

This should show you the location of the mel command file on your machine.  Then you can crack that open in a script editor and see what it's doing.  That should help you get the ball rolling a little better.

Message 3 of 3

Anonymous
Not applicable

Ty that whay I finnaly did.
And I discovered "showall" in the script editor 🙂

0 Likes