• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading cache with maxscript doesn't resize, breaks preview
#1
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
TheFumeGrid.SetPath TheCacheFile #(#default,#match)
TheFumeGrid.SetPath TheCacheFile #(#match)

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!
  Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)