[BUG] referenced lattice(ffd) not stores weights for two or more objects after scene is reopened

[BUG] referenced lattice(ffd) not stores weights for two or more objects after scene is reopened

batarg
Advocate Advocate
182 Views
0 Replies
Message 1 of 1

[BUG] referenced lattice(ffd) not stores weights for two or more objects after scene is reopened

batarg
Advocate
Advocate

When you edit ffd weights on more than one object, maya won't save your edits!

 

Steps to reproduce bug:

1. create dummy object(box)

2. apply lattice

3. save scene

4. create new scene and reference scene saved in previous step

5. create two more objects and add them to the ffd:

deformer -e -g pCube1 -g pCube2 test:ffd1;

6. edit their weights (rmb on cube object > paint > ffd > paint test:ffd1-weights)

7. save scene

8. see the results in reference edits (rmb on lattice object in outliner > Reference > List Edits..)

you will see something like this:

-------- setAttr --------
...
setAttr test:ffd1.wl[1:2].w 3 3 0.673039 5 0.00253098 7 0.000563538 4 0 2.05834e-06 1 0.310582 2 0.00935719 3 0;

9. reopen scene and check reference edits... weight will be reset and you will see this in Reference Edits:

-------- failed_setAttr --------
setAttr test:ffd1.wl[1:2].w 3 3 0.673039 5 0.00253098 7 0.000563538 4 0 2.05834e-06 1 0.310582 2 0.00935719 3 0

 

steps in macro-script:

// create scene with lattice for referencing
file -f -new;
polyCube -n dummy;
lattice dummy;
file -rn test.ma;
file -typ mayaAscii -save;

// final scene with referenced lattice(ffd)
file -f -new;
file -r -ns test test.ma;
polyCube -n pCube1;
polyCube -n pCube2;
deformer -e -g pCube1 -g pCube2 test:ffd1;
percent -v 0.3 test:ffd1 pCube1.vtx[1];
percent -v 0.4 test:ffd1 pCube2.vtx[3:4];
file -rn test_rffd.ma;
file -typ mayaAscii -save;

// reopen final scene to check weights edits
file -o test_rffd.ma;
0 Likes
183 Views
0 Replies
Replies (0)