diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-07-03 09:05:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-07-03 09:05:28 +0400 |
commit | a33feaf49bf865aa6de0a02fd2b4231bb0393757 (patch) | |
tree | 2bb9a9ad6af87b1733593abbd950b444e8ad1f17 /release/scripts/envelope_symmetry.py | |
parent | acef774a610802bed2874b326ef601776bf0093e (diff) |
Lots of scripts are using Object.Get() where Scene.GetCurrent().getChildren() is what is needed.
When through and replaced the obvious ones but there are still a a few Id rather not touch without more about whats going on.
Did quite a few changes to export-iv also.
Diffstat (limited to 'release/scripts/envelope_symmetry.py')
-rw-r--r-- | release/scripts/envelope_symmetry.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/envelope_symmetry.py b/release/scripts/envelope_symmetry.py index 5a4f7a31b3b..7031c1b72a9 100644 --- a/release/scripts/envelope_symmetry.py +++ b/release/scripts/envelope_symmetry.py @@ -103,13 +103,13 @@ def flipFace(v): # return object with given object name (with variable parts) and mesh name def getObjectByName(obj_name, mesh_name): - objs = Blender.Object.Get() + objs = Blender.Scene.GetCurrent().getChildren() #Blender.Object.Get() for obj in objs: if obj.getType() == "Mesh": # if obj.getName()[0:len(obj_name)] == obj_name and obj.getData().name == mesh_name: # use only mesh_name so bone name and weight (in the envelope name) # can be changed by the user and mirrored by the script. - if obj.getData().name == mesh_name: + if obj.getData(name_only=1) == mesh_name: return obj return False @@ -118,7 +118,7 @@ SUFFIX_LEN = len(REF_SUFFIX); Blender.Window.EditMode(0) count = 0 -objs = Blender.Object.Get() +objs = Blender.Scene.GetCurrent().getChildren() #objs = Blender.Object.Get() for obj in objs: if obj.getType() != 'Mesh': continue |