Home Technical Talk

Maya: file -q -sn without file extension?

polycounter lvl 11
Offline / Send Message
Toast polycounter lvl 11
How to query the scene name wihtout the file extension?

I've tried various forms of tokenize but can't manage this :(

Edit: Solved!

$name = `file -q -shn -sn`;
$name2 = `basenameEx($name)`;

HOWEVER.

Does anyone know how to query the current directory that the file is in?

Replies

Sign In or Register to comment.