diff --git a/modules/maya_warpper.py b/modules/maya_warpper.py index b45d024..eac77dd 100644 --- a/modules/maya_warpper.py +++ b/modules/maya_warpper.py @@ -62,7 +62,11 @@ def new_scene(): checkState() return cmds.file(new=True, f=True) - + +def rewind(): + cmds.currentTime(1) + cmds.playbackOptions(minTime=1) + def save_scene_as(path = None, file_name = None): if os.path.exists(path): diff --git a/pipeline.py b/pipeline.py index ae4c33e..69af44e 100644 --- a/pipeline.py +++ b/pipeline.py @@ -336,6 +336,8 @@ def create(self, path, catagory_name, asset_name, component_name, project, setti if not create_from: maya.new_scene() maya.set_fps(self.project.project_fps) + maya.rewind() + elif create_from == "current_scene": pass @@ -742,6 +744,8 @@ def create(self, path, sequence_name, shot_name, project, settings, create_from) if not create_from: maya.new_scene() maya.set_fps(self.project.project_fps) + maya.rewind() + elif create_from == "current_scene": pass @@ -1579,7 +1583,7 @@ def __init__(self, parent=None): self.ui.users_pushButton.setText(self.settings.user[0]) else: self.ui.users_pushButton.setText("Not logged In") - self.unload_project() + #self.unload_project() #maya.viewMassage("No user is logged in") @@ -1751,7 +1755,6 @@ def set_project(self): else: - return True @@ -3594,7 +3597,10 @@ def master_make_master(self): if dlg.warning("critical", "Delete", "Are you sure you want to make this version the master?" ): if maya.current_open_file() == self.component.master: - maya.new_scene() + maya.new_scene() + maya.set_fps(self.project.project_fps) + maya.rewind() + self.component.make_master(version) maya.open_scene(self.component.master) self.update_masters()