MEL command to set a project in the current folder

MEL command to set a project in the current folder

Anonymous
Not applicable
1,726 Views
3 Replies
Message 1 of 4

MEL command to set a project in the current folder

Anonymous
Not applicable

Hi,

 

I am looking for a MEL command  that I can set the project workspace automatically in the project folder, in which the scene that  opened, exist.

 

I want to do this because in my script I copy the project folder and rename it. So , when I'm trying to put images in hypershade and save the scenes, the hypershade looking in the previous folder and the scenes are going to save in the previous project folder that I copy paste. Maybe after gonna have problems with the render. I think that is because of of the workspace. That's why I want to reset the workspace.

 

Does anybody knows how i can do that with a Mel command?

 

Thank you in advance!

 

Dimitris

0 Likes
Accepted solutions (1)
1,727 Views
3 Replies
Replies (3)
Message 2 of 4

rajasekaransurjen
Collaborator
Collaborator

Hi,

 

Set current project using setProject command.

 

Hope this will help.

 

 

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hello, 

 

i did it like this at the end! but the problem is that you have to store the path of the project in a value.

If you can do this it works!

 

Dimitris

0 Likes
Message 4 of 4

rajasekaransurjen
Collaborator
Collaborator
Accepted solution

Hi,

Try this....

 

string $newProject;
setProject $newProject;

This will open the Project Browser window. Then Sets the current project.

 

0 Likes