Save shelfs on a custom location

Save shelfs on a custom location

Anonymous
Not applicable
3,580 Views
4 Replies
Message 1 of 5

Save shelfs on a custom location

Anonymous
Not applicable

Hi! I'm actually loading a custom shelf from a custom path in my server, this is working okay, but every time I need to update this shelf  it's only being saved on my "prefs" folder and not overwriting my original file on the server.

There is any way I can solve this problem? I've tried to add the path to the "MAYA_SHELF_PATH" but still doesn't work.

I'm working on W10.

Thanks!

0 Likes
3,581 Views
4 Replies
Replies (4)
Message 2 of 5

mspeer
Consultant
Consultant

Hi!

 

"When a new shelf is created, it is always saved in the default shelf directory. To share it, move it to the desired directory (that is, one of the ones specified by MAYA_SHELF_PATH)."

https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Maya/fil...

Message 3 of 5

Abdulla-Qaladzay
Collaborator
Collaborator

Hi @Anonymous 

with this command we can update our shelve-files (or any file we want) to another directory only by one click on a shelf button.

 

this is the MEL command:

system ("copy /y C:\\Users\\abdulla\\Documents\\maya\\2018\\prefs\\shelves\\*.* C:\\Users\\abdulla\\Desktop\\localServerDir");

command_01.PNG

note:

-use double slash for the path

-this is based on windows  CMD if the destination is remote like scp  type the command just like you do it in CMD and replace the slashes with double slash

Message 4 of 5

Anonymous
Not applicable

I appreciate the suggestion, but it is not what I'm looking for.

I've seen this done within maya, without any need of using an specific script on a button. I've seen this done working on Linux and it was really handy,  because all the co-workers didn't even had to care about to push an specific button to save their shelves to the server or even knowing that this was happening.

Message 5 of 5

mspeer
Consultant
Consultant

Hi!

 

Here if i only do some changes in Maya to an existing shelf, loaded from a custom directory, they will be saved out to the custom directory.

Please add some more details about what you are doing.

Do you still have a copy of the shelf in the Maya prefs directory?

Are you sure your shelf is loaded from the custom directory?

 

Please try this again with fresh Preferences and no 3rd party plug-ins loaded.

Reset of your preferences:
Rename the folder prefs in folder 2020 to something like prefs_backup, or to reset everything, the folder 2020 to 2020_backup (or even the maya folder to maya_backup). Maya creates new folders (don't copy preferences from previous Maya versions). Detailed at:
https://knowledge.autodesk.com/support/maya/troubleshooting/caas/sfdcarticles/sfdcarticles/Reset-May...