Maya creates folders in project root automatically
Quote from Magnus on 15. October 2019, 13:58Hi,
Not sure if this counts as a bug, but at least it's an undisered behaviour from maya 🙂
Folders keep appearing in the project folder which looks suspiciously like default maya project folders (also workspace.mel). And as Prism sets the maya project (which is great) it might cause Maya to create folders it cant find...
I did a bit of investigating, and seems like we arenot the only one experiencing this. This is taken from CGTalk, maybe it could be of help:
I have stumbled upon the same issues as well and editing the projectSetup.mel file doesn’t seem to work when using the Set Project command … maya still creates a scenes / assets folders inside the folder i point to.However i have looked in the scripts folders and found a createProjectDefaults.mel … made a copy to my scripts folder and commented the following lines
// if( !$foundMayaAscii ) {
// workspace -fr “mayaAscii” “scenes”;
// workspace -dirÂworkspace -q -rootDirectory
;
// workspace -cr “scenes”;
// }
// if( !$foundMayaBinary ) {
// workspace -fr “mayaBinary” “scenes”;
// workspace -dirÂworkspace -q -rootDirectory
;
// workspace -cr “scenes”;
// }
// if( !$foundTemplates ) {
// workspace -fr “templates” “assets”;
// workspace -dirÂworkspace -q -rootDirectory
;
// workspace -cr “assets”;
// }// Only save the workspace if we added something. We don't want to // trigger unnecessary workspace changed messages if everything // was fine. // if( !$foundMayaAscii || !$foundMayaBinary || !$foundTemplates ) { workspace -dir $curDir; workspace -s; }
}
This prevents maya from creating assets/scenes folders when i change the project folder.
If you want to get rid of the workspace.mel as well you might want to comment the last code lines as well though you will loose any other folders that you might have set up for the current project as mduvekot mentioned above.
Hi,
Not sure if this counts as a bug, but at least it's an undisered behaviour from maya 🙂
Folders keep appearing in the project folder which looks suspiciously like default maya project folders (also workspace.mel). And as Prism sets the maya project (which is great) it might cause Maya to create folders it cant find...
I did a bit of investigating, and seems like we arenot the only one experiencing this. This is taken from CGTalk, maybe it could be of help:
I have stumbled upon the same issues as well and editing the projectSetup.mel file doesn’t seem to work when using the Set Project command … maya still creates a scenes / assets folders inside the folder i point to.
However i have looked in the scripts folders and found a createProjectDefaults.mel … made a copy to my scripts folder and commented the following lines
// if( !$foundMayaAscii ) {
// workspace -fr “mayaAscii” “scenes”;
// workspace -dirÂworkspace -q -rootDirectory
;
// workspace -cr “scenes”;
// }
// if( !$foundMayaBinary ) {
// workspace -fr “mayaBinary” “scenes”;
// workspace -dirÂworkspace -q -rootDirectory
;
// workspace -cr “scenes”;
// }
// if( !$foundTemplates ) {
// workspace -fr “templates” “assets”;
// workspace -dirÂworkspace -q -rootDirectory
;
// workspace -cr “assets”;
// }// Only save the workspace if we added something. We don't want to // trigger unnecessary workspace changed messages if everything // was fine. // if( !$foundMayaAscii || !$foundMayaBinary || !$foundTemplates ) { workspace -dir $curDir; workspace -s; }
}
This prevents maya from creating assets/scenes folders when i change the project folder.
If you want to get rid of the workspace.mel as well you might want to comment the last code lines as well though you will loose any other folders that you might have set up for the current project as mduvekot mentioned above.
Quote from RichardF on 23. October 2019, 18:40Yeah I also experienced some additional Maya folders in the past. I guess it wouldn't be a good idea to let Prism make that change by default, but it's good to know how to disable these folder manually. Thanks for sharing.
Yeah I also experienced some additional Maya folders in the past. I guess it wouldn't be a good idea to let Prism make that change by default, but it's good to know how to disable these folder manually. Thanks for sharing.
Quote from kasunmalinda on 31. January 2021, 17:43this sounds like a feature to me. ? I'm creating sourceimages and few other folders manually. but unfortunately, this never happened to me. any chance adding this "Bug" as a feature?
this sounds like a feature to me. ? I'm creating sourceimages and few other folders manually. but unfortunately, this never happened to me. any chance adding this "Bug" as a feature?
Quote from RichardF on 1. February 2021, 12:20Are you creating these folders in the top level folder of your project @kasunmalinda? Would it solve your problem if you could save folder structures as a presets for projects in Prism? I'd rather not rely on Maya too much for this.
Are you creating these folders in the top level folder of your project @kasunmalinda? Would it solve your problem if you could save folder structures as a presets for projects in Prism? I'd rather not rely on Maya too much for this.