CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-18-2013, 10:16 PM   #1
jacobfshr
New Member
jake
USA
 
Join Date: Sep 2007
Posts: 12
converting network path to local for playblast playback

what's the best way to change a network path to a local path in Maya?

I want to have a button to playback the playblast from the directory of the currently selected scene.
currently, the script reads the scene's file path and Maya gives me back the network address, but when I use a system("load" + $scenePath), it doesn't seem to respond. if I manually type in the local address, it works flawlessly.

I tried to use tokenize and an array like this here (http://www.scriptswell.net/2010/03/...l-tokenize.html) to chop off the front, but besides it seeming like a messy solution, it didn't seem to work right.

any suggestions?
 
Old 03-19-2013, 12:34 AM   #2
Panupat
Expert
 
Panupat's Avatar
portfolio
Panupat Chong
Thailand
 
Join Date: Feb 2004
Posts: 1,942
I can playblast from network without problem. Have you tried os.normpath?
 
Old 03-19-2013, 02:21 PM   #3
jacobfshr
New Member
jake
USA
 
Join Date: Sep 2007
Posts: 12
Ah, no I hadn't tried any python yet and was sticking to mel. I'll give it a try. Thanks!
 
Old 03-19-2013, 02:21 PM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 06:40 PM.


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