summaryrefslogtreecommitdiffstats
path: root/tools/MayaTools/Maya4.0/scripts/SimpsonsArt/setShapeNode.mel
diff options
context:
space:
mode:
Diffstat (limited to 'tools/MayaTools/Maya4.0/scripts/SimpsonsArt/setShapeNode.mel')
-rw-r--r--tools/MayaTools/Maya4.0/scripts/SimpsonsArt/setShapeNode.mel17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/MayaTools/Maya4.0/scripts/SimpsonsArt/setShapeNode.mel b/tools/MayaTools/Maya4.0/scripts/SimpsonsArt/setShapeNode.mel
new file mode 100644
index 0000000..0d631df
--- /dev/null
+++ b/tools/MayaTools/Maya4.0/scripts/SimpsonsArt/setShapeNode.mel
@@ -0,0 +1,17 @@
+global proc setShapeNode()
+{
+ string $objects[] = `ls -sl -tr`;
+ print ("\n");
+ print $objects;
+ for($object in $objects)
+ {
+ string $shapes[] = `ls -dag -lf $object`;
+ print ("\n");
+ print $shapes;
+ for($shape in $shapes)
+ {
+ string $parents[] = `listRelatives -p $shape`;
+ rename $shape ($parents[0]+ "Shape");
+ }
+ }
+} \ No newline at end of file