the current filename

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
masquerade's picture

Hi, Actually you dont need a

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's picture

masquerade, you're a genius

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

Scripting open the doors to a better world finally... I mean more confortable...

GODLIKE's picture

Try to watch

Try to watch here:

http://www.cguu.com/

ArkAnjh's picture

Great, thank you for this

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

Scripting open the doors to a better world finally... I mean more confortable...

GODLIKE's picture

Hey you can know the name of

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!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.