Issue scripting ShapeEditor Combination

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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;
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
Sorry for the double post I published it first in the wrong place 😞