![]() |
|
Loading cache with maxscript doesn't resize, breaks preview - 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: Loading cache with maxscript doesn't resize, breaks preview (/showthread.php?tid=1587) |
Loading cache with maxscript doesn't resize, breaks preview - joconnell - 01-15-2015 Heya Folks! I'm doing a job where I've to add breath to live action footage to make it seem cold. Since there's a lot of shots, I'm using a load of premade caches and then using a maxscript tool to make loading them from a library easily. In terms of the code, I'm using the following: Code: TheFumeGrid = FumeFX() --width:100 length:100 height:100 So it's loading in the cache properly which is fine, but it's not matching the dimensions of the cache I'm loading in correctly each time. The variable called "theCacheFile" is a string that I make based on options chosen in my maxscript ui and it looks for a path built from the text of those options. I've tried using the setPath Command twice so I can use the #match flag again and try and give it a second chance to match the original grids dimensions but no good. The second thing is if I load in a grid in this way, the preview window won't work. If I manually load in the cache, I'll get the window asking if I want to match and the preview looks fine. Any thoughts or am I doing dumb things with my code? Cheers! Re: Loading cache with maxscript doesn't resize, breaks prev - sitnisati - 01-16-2015 Hello, In the filename, did you maybe omit the following? $.SetPath "F:\\temp\\FumeFX\\aa_0000.fxd" #(#default ,#match) For #match, if you omit _0000 (or any existing frame number), FumeFX and cache won't be checked for grid dimensions and won't be matched if grid and cache have different sizes. I hope it will work now. Regards, Kresimir Tkalcec Re: Loading cache with maxscript doesn't resize, breaks prev - joconnell - 01-16-2015 Yep, my script is : Code: TheCacheFile = (theRandomCache + TheCacheString[TheCacheString.count] + "_0000.fxd")It seems to work sometimes but not all the time. Also I notice that the cache files are written out with the smoke, temperature, velocity and extra detail channels and when I load anything with this method, the fume ui is stating that it's using smoke and fire as it's channels. The preview window doesn't work so would it be worth loading up the fdc file too to set an initial state for the grid with all of the appropriate channels? The full code I'm using for the fume loading bits is as follows, all of the variables in the first few lines are bits of strings set by maxscript radio buttons so nothing strange. Code: TheFumeCacheRoot = (theRootPath + "\\" + TheLetter.selected + "\\" + TheLetter.selected + "_" + TheWindDir + "_" + LoudnessType + "_" + dissipationType + "_" + raiseType + "\\")Cheers! John Re: Loading cache with maxscript doesn't resize, breaks prev - joconnell - 01-16-2015 I popped in the FDC line using TheFumeGrid.LoadSim before pulling in the actual cache to see if that made a difference but alas no! It just seems like maxscript loading doesn't work very consistently. Would I be better off also saving out a preset when I'm simming my files and loading that in too? Cheers! Re: Loading cache with maxscript doesn't resize, breaks prev - sitnisati - 01-19-2015 Hello, Quote:"Also I notice that the cache files are written out with the smoke, temperature, velocity and extra detail channels and when I load anything with this method, the fume ui is stating that it's using smoke and fire as it's channels". Yes, that is correct as cache channels loading is not anyhow related to what you have selected for output. However, you will need to manually setup the rendering settings in a newly created grid, weather by save/load presets or directly via script. Regards, Kresimir Tkalcec Re: Loading cache with maxscript doesn't resize, breaks prev - joconnell - 06-23-2015 Ah super, so if I save my presets for each type of sim it and load them first, the cache will at least fit. I notice that doing this still doesn't let the preview work, but at least the grid is the right size now. Is there any way to load a preset from a network drive rather than your local fume folder? Apologies for the long delay in responding - the job that I set this up for originally was killed, but then a similar job came up about 6 months later
Re: Loading cache with maxscript doesn't resize, breaks prev - sitnisati - 06-29-2015 Hello, No problems... the time flies ![]() LoadPresets() will only load preset files from the presets path, sorry - no option to load from any other path via mxs. Regards, Kresimir Tkalcec Re: Loading cache with maxscript doesn't resize, breaks prev - joconnell - 06-29-2015 Okay, that's no problem, we can just push presets to peoples computers. Any idea why the preview isn't behaving? It's not that much of an issue but for newer users it might make them a bit nervous not being able to see that their grid has loaded anything! Looking forward to seeing all the fun new things in fume 4, apparently there's some nice speed increases! Re: Loading cache with maxscript doesn't resize, breaks prev - sitnisati - 06-29-2015 Don't know for sure as setpath should set the path to the caches and FumeFX should just read them from there...just like you have manually pointed to the caches. As for the version 4.0 - there will be some really nice time saving features in it ![]() Regards, Kresimir Tkalcec Re: Loading cache with maxscript doesn't resize, breaks prev - joconnell - 06-29-2015 Just curious, I'm trying out simming to field 3d to allow testing of the vray volume grid object. It seems that if you set your preferences to use gzip compression with field 3d files, files submitted to a farm with backburner mode enabled won't respect the setting and sim using fume's custom compression. Is there any chance of this being fixed or is there anything else that I need to do for it to behave? Cheers! Re: Loading cache with maxscript doesn't resize, breaks prev - sitnisati - 06-30-2015 Hello, It's a local preferences - you should setup you sim machine to save to gzip f3d as well. Regards, Kresimir Tkalcec Re: Loading cache with maxscript doesn't resize, breaks prev - joconnell - 06-30-2015 Ah cool, so that's a sneaky edit on the DoZipCompressionF3D=Yes line in our fume.ini then. Much appreciated for the help kresimir, I'd say this might be a thing that'll catch some others out in future, might be worth noting in the docs. Re: Loading cache with maxscript doesn't resize, breaks prev - sitnisati - 07-01-2015 You're welcome ! We might add a FumeFX.ini section to the help file with short descriptions. Thank you. Regards, Kresimir Tkalcec |