PDA

View Full Version : scale container


EmmeCG
08-03-2006, 04:33 PM
Hi i
s possible linking the resolution of container with the dimension of container?

i try with connection editor and with expression but don't work!

CHEERS

azshall
08-03-2006, 07:14 PM
In the 'Fluids' menu, try using the 'Extend Fluids' .. go to the option box, this will allow you to scale up the size of your container, while maintaining your resolution

az

AndersEgleus
08-03-2006, 10:35 PM
Sounds like a bad idea - changing the resolution will reset the grids with the fluid content, that's probably why it doesn't work.

If it's a convenience / workflow thing (you resize the fluid and you want the voxels to stay the same size) it's probably better to go with azshall's suggestion.

Ge-ZUS
08-04-2006, 11:39 PM
there seems to be no way link these two parameters... (??)

i thought, within maya, linking should never be a problem...



that's what i found out so far (for 3d-containers):

- change resolution (x/y/z):
setAttr fluidShape1.resolution x y z;

- change size (Width/Height/Depth)
setAttr "fluidShape1.dimensionsW" w;
setAttr "fluidShape1.dimensionsH" h;
setAttr "fluidShape1.dimensionsD" d;

can you link that in a way?



remember: resizing is no problem, only resolution changes could cause problems.

when you set your resolution, set it the way the voxels are cubes with an overall ratio of 1 to 1 to 1. otherwise you will get distorted or "squeezed" simulations.

if you have some content within your container (maybe initial stated with actually no emitter anymore) and then you resize your container, set initial state again before you do anything else. otherwise your content is gone...

Ge-ZUS
08-05-2006, 08:28 AM
there seems to be no way link these two parameters... (??)

i thought, within maya, linking should never be a problem...



that's what i found out so far (for 3d-containers):

- change resolution (x/y/z):
setAttr fluidShape1.resolution x y z;

- change size (Width/Height/Depth)
setAttr "fluidShape1.dimensionsW" w;
setAttr "fluidShape1.dimensionsH" h;
setAttr "fluidShape1.dimensionsD" d;

can you link that in a way?



remember: resizing is no problem, only resolution changes could cause problems.

when you set your resolution, set it the way the voxels are cubes with an overall ratio of 1 to 1 to 1. otherwise you will get distorted or "squeezed" simulations.

if you have some content within your container (maybe initial stated with actually no emitter anymore) and then you resize your container, set initial state again before you do anything else. otherwise your content is gone...


sorry, i meant "change the resolution of your container" rather than "resize your container" in the last part i wrote

CGTalk Moderation
08-05-2006, 08:28 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.