Oct 2005
8 / 9
Oct 2005
Oct 2005

Hello all,

Iam trying to attach a progress bar to an action which exports selected objects to an .OBJ file.

Iam able to attach progressBar to other looping actions but not an exporting file or data, action.

If anyone know how to do this or can figure out this, It will be a big relief...

Thanks to everyone,
Amit Khanna.

[b]ps: this is what iam trying monitor progress of :

file -op "groups=0;ptgroups=0;materials=0;smoothing=1;normals=0"
-typ "OBJexport"
-pr
-es "C:/Documents and Settings/user/Desktop/abcd";

This just exports selected objects to a obj file.[/b]

  • created

    Oct '05
  • last reply

    Oct '05
  • 8

    replies

  • 2.3k

    views

  • 1

    user

  • 2

    links

The file-command usually has its own progressbar in the help-line doesn't it?

If you have multiple objects to export as obj it should work as well when you update your progressbar in a loop after each export. To display a progressbar when exporting just one OBJ makes no sense of course.

Hi there,

Well i have a progress bar in my own script window and dont want to use the global progress bar.

And while exporting objects the global bar doesnt shoes progress.

The task iam trying to accomplish is that I select a couple of objects and just export them using a button on my scriptUI. Now this is just one click task and there isnt a any looping going here.

Only thing i can monitor is the bytes dumping into the obj file, If there's a way to do this!!!

Well iam stuck at this. My script is working fine, Everything is good but you know when i try to export really heavy meshes it takes a little time and everything kind of freezez( i dont mind that). But if i have this progressBar running to show me that how much of DATA is exported, ill be happy

Anyways Thanks for your efforts, I appreciate it.

Amit.

PS: hey AmitC... our names are same well but i dont think we know eachother. Anyways where are you from and what do you do??

If everything freezes during export its a good idea to consider global progress bar.
I have seen in past maya freezing everything except progress bar.

PS: I new a person with your screen name back in school days. nevermind.

Ok

I dont even mind using the global progressBar, until some activity is happening.
But the thing is how to monitor progress of the file dump which is this "exporting action of the selected objects to an OBJ file".

Any idea's ???

Thanks,
Amit

Hi guys,

Iam still stuck at this.... Does anyone have a solution to it... Please help me.

Thanks a lot,
Amit

mel cant monitor prccessing time of of indivdidual mel commands mid command sorry! (thing is you cant run ANY mel during this time)Theres absoluteoly anothing you can do to hook up one export process customly!

YOu can try to do s scriptjob to se if theres some exttra cycles diuring teh export time but i doubt thats the case.

Hi there,

Thanks for the help. You know what happened...its funny. I got my progressbar working for my export action.

what i did was counted the number of polys being exported and made this count the maxValue of progressBar. It worked fine. But then i realised my progressBar was running first and then my exporting was happening hehe....so basically NOTHING really happening, Just both process running seprate.

Anyways... ill just leave it...FOR NOW

Does anyone knows how does "-command" flag works in "file" command...

iam getting this error
The -command flag must be used by itself.

Thanks for any help guys...
Amit