ScriptSpot

Forum topic · General Scripting

the current filename

By ArkAnjh · 2008-11-27

Description

hi,

I'm looking for a way to get the filename of my current 3DSMax's scene.
I know I can get it while opening or saving the file using getOpenFileName or getSaveFileName... but actually, this is not exactly what I want.

I need to get the filename of my current file just clicking on a button.

Is there a way to do it or maybe a variable which looks logical to me...

thanx for the help

cya

Comments (5)

masquerade · 2008-11-29

Hi,

Actually you dont need a webcam to do that job. Just some screen capture software, some C+ connection , some image recognition blabla and thats it! :P

 

or you can use "maxFileName" command. This may be easier.

ArkAnjh · 2008-12-02

masquerade, you're a genius with a big sense of humor !

Actually, I was looking for that kind of word, I was pretty sure there was one, but I didn't manage to find it ! even looking for filename in max help !
Anyway, your answer it the one I needed !

maxFileName !!!!!!!!!!

Thanx a lot

ArkAnjh · 2008-11-28

Great, thank you for this answer, but actually I knew it of course except I can't ask Max to use the webcam to read the name wrote in the top left corner... lol or do you mean there is a way to script this task I don't know yet (I don't mean using a webcam of course...)

Actually I'm building a script to simplify my task. Basically I have to test collision between element from a lot of files merged. To prepare each file, I need to group object from each files by "lines" to test.
As a member of a group is considered having no collision with any elements of itselft, I need to make each group named differently. To do this as I can't get a variable from one file to another, so I'm using the filename.

So I need maxscript to get the filename automatically.

Thanx for the help

GODLIKE · 2008-11-27

Hey you can know the name of your current scene in Max easily: just watch the name of the window on the top left corner!