comparison pyink/MBScene.py @ 1218:35c552f33f77

Remove debug messages
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 05 Jan 2011 22:00:15 +0800
parents 93acb8568ad3
children 9425733a677e
comparison
equal deleted inserted replaced
1217:93acb8568ad3 1218:35c552f33f77
849 next_scene_group_id = next_scene_node.getAttribute('ref') 849 next_scene_group_id = next_scene_node.getAttribute('ref')
850 next_scene_group = self.get_node(next_scene_group_id) 850 next_scene_group = self.get_node(next_scene_group_id)
851 851
852 nframes = stop_idx - start_idx + 1 852 nframes = stop_idx - start_idx + 1
853 percent = float(idx - start_idx) / nframes 853 percent = float(idx - start_idx) / nframes
854 print tween_obj_tween_type
855 self.tween.updateTweenContent(frameline.duplicateGroup, 854 self.tween.updateTweenContent(frameline.duplicateGroup,
856 tween_obj_tween_type, 855 tween_obj_tween_type,
857 scene_group, 856 scene_group,
858 next_scene_group, 857 next_scene_group,
859 percent) 858 percent)
989 # 988 #
990 def _update_frameline_content(self, layer_idx): 989 def _update_frameline_content(self, layer_idx):
991 line = self._framelines[layer_idx] 990 line = self._framelines[layer_idx]
992 layer = self._layers[layer_idx] 991 layer = self._layers[layer_idx]
993 for scene_node in layer.scenes: 992 for scene_node in layer.scenes:
994 print scene_node
995 start, end, tween_name = self._parse_one_scene(scene_node) 993 start, end, tween_name = self._parse_one_scene(scene_node)
996 994
997 line.add_keyframe(start) 995 line.add_keyframe(start)
998 if start != end: 996 if start != end:
999 line.add_keyframe(end) 997 line.add_keyframe(end)
1059 scene_group = orig.duplicate(doc) 1057 scene_group = orig.duplicate(doc)
1060 1058
1061 old_nodes = _travel_DOM(orig) 1059 old_nodes = _travel_DOM(orig)
1062 new_nodes = _travel_DOM(scene_group) 1060 new_nodes = _travel_DOM(scene_group)
1063 for old_node in old_nodes: 1061 for old_node in old_nodes:
1064 print old_node
1065 old_node_id = old_node.getAttribute('id') 1062 old_node_id = old_node.getAttribute('id')
1066 new_node = new_nodes.next() 1063 new_node = new_nodes.next()
1067 new_node.setAttribute('ns0:duplicate-src', old_node_id) 1064 new_node.setAttribute('ns0:duplicate-src', old_node_id)
1068 pass 1065 pass
1069 1066