Sitni Sati Forums
ERROR: 12290 when using fumeFx01.setPath() - Printable Version

+- Sitni Sati Forums (https://forum.afterworks.com)
+-- Forum: Products (https://forum.afterworks.com/forumdisplay.php?fid=4)
+--- Forum: FumeFX [max] (https://forum.afterworks.com/forumdisplay.php?fid=8)
+--- Thread: ERROR: 12290 when using fumeFx01.setPath() (/showthread.php?tid=578)



ERROR: 12290 when using fumeFx01.setPath() - Capitanred - 04-08-2008

$FumeFX01.SetPath ("D:/fumeTemp/test/" + ($FumeFx01.name) + ".fxd") "_.fxd"

am I doing it right? it does show the path in the ffx UI, but when i want to open it, it shows this error message.


Re: ERROR: 12290 when using fumeFx01.setPath() - Capitanred - 04-08-2008

and why is it allways telling me that the folder is read only, altough it is not?


Re: ERROR: 12290 when using fumeFx01.setPath() - jrand - 04-08-2008

Not sure, I don't know if your syntax is correct though:

Quote:SetPath outputFile

This sets output file name. You must enter the path and base file name; the extension is not necessary.

$FumeFX01.SetPath "F:/temp/FumeFX/aa

$FumeFX01.SetPath "F:/temp/FumeFX/aa.fxd"



Re: ERROR: 12290 when using fumeFx01.setPath() - Rif - 04-08-2008

$FumeFX01.SetPath ("C:/Temp/" ) "aa.fxd" == Works..

1 think that might be a bug is that when you assign the output Path By script like this , you cannot Click and Borwse your path through the UI Browser Anymore..


Re: ERROR: 12290 when using fumeFx01.setPath() - Capitanred - 04-08-2008

well yea, I have read the manual too, but if i write this:

$FumeFx01.setPath "D:/fumeTemp/test/aa"

i get the message:

-- Argument count error: SetPath wanted 2, got 1

no matter if there are back or forward slashes.

if i write:

$FumeFx01.setPath "D:/fumeTemp/test/aa" "bb"

in the UI of FumeFx01 is now the path "D:/fumeTemp/test/aa",but when i click on the button, i get the error message.

if i write the same with backslashes, i get the message, that the folder is read only :?

Rif---
all right...if it is a bug, then I'll try to work on with it.
maybe it will not be a problem...i hope Wink


Re: ERROR: 12290 when using fumeFx01.setPath() - jrand - 04-08-2008

LOL Big Grin sorry, I should have known better (that you already read the manual)

I too am curious how this is this works I was writing a Simulate and Render script and I had to omit all of the path setups, I couldn't get it to work either, I didn't invest much time in trying to find a solution.

I The only reason I mentioned it was your original function seemed to have a redundancy with the last "_.fxd" since you were already setting the extension from with the path in parenthesis.

Does what Rif mentioned not function from within your script?


Re: ERROR: 12290 when using fumeFx01.setPath() - Capitanred - 04-08-2008

hmm it's not a problem for me that it is giving me an error message if i can still set the path by script.

but i'm tryin to do it dynamically in a tool by saving it in the same folder as the scene is saved.
but this gives me backslashes, and with backslashes i get this annoying message that the folder is read only Sad
don't know how to get dir of that...


Re: ERROR: 12290 when using fumeFx01.setPath() - jrand - 04-09-2008

Do the folders already exist? Or are you trying to create them with the script? You may have to create the folders prior to setting the path.


Re: ERROR: 12290 when using fumeFx01.setPath() - Capitanred - 04-09-2008

:lol: ahh...i see. Indeed i'm trying to ceate them with the script.

do you know how to create folders by script? :oops:
Edit________

I got it Big Grin "makeDir" will do it