File Import Mel window?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  03 March 2003
File Import Mel window?

I seen a script like this used when people do them for Demoing Maya. But for some reason can't find it on Highend 3D.

I am looking for a script to open a window that has buttons. And once I click on the button it imports the file that I put in the mel file.


A script were I can adjust and edit. Lets say I am doing a modular nieghborhood level. I could have a button labeled in " Fence " or " Tree Oak " or " Mail Box "....etc.

I tried writing one myself and most everything working just fine except I couldn't figure out how write the tags proper to import a file when I click the button.

Any mel scripts out there do this or anyone care to share there's if they have something like this?
..::Knowledge is true power that should be shared by all !::..
  03 March 2003
You can do this be using this command on a button, menu item or whatnot.

"file -import -type \"mayaAscii\" -gr -rpr \"nameOfYourFile\" -options \"v=0\" \"completePathToYourFile\";"

If you use Binary, then also change the file type as needed.

  03 March 2003
you must remember if you use the import function .. the textures stay in the source folder and only the path is changing to the textures .. but there are some tricky ways to change it .. if you need it i can tell it you ..

i working on an prefab library where you can export selected objects with all textures the object is using.

also import work now perfect

and if you import 3 or100 times the same object you get 100 double meterials usaly .. but i make a script that klii this double stuff

k, i see i'am talking to much about something you dont wanted to know .. sorry
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
  03 March 2003
Thanks guys!

bigfatMELon : Thanks man. I put that after -command and it worked just fine!

X-Tender: Those are some good ideas. If and when you get the stuff going would you mind posting it? It would be cool to get rid of all those duplicate materials.

Thanks for your help, much apreciated!
..::Knowledge is true power that should be shared by all !::..
  03 March 2003
the script is ready and work bout 99,9% .. so i must shape a little bit on it ...
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
  04 April 2003
i only wanted to say that the script is ready .. so if you need it ... take it =D .. the URL is in my sig ... xt_materialshaver
| xt_textureStudio | xt_prefabLibrary |xt_normalis | Get it @ Fuchtelworld V.3 |
  01 January 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 01:14 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.