Changes Doesn't Get Saved

Hello

I have a problem, that maya doesn't save changes to curves.
With this python code i rebuild a curve in maya:

CODE
newCurve = mc.rebuildCurve( curveTrans,
ch=0, cch=0, rpo=1,rt=0,end=1,kr=0,kcp=0,kep=1,kt=0,s=30,d=1,tol=0.01 )

Now the curve is what i want and has 30 control points.
Saving in the menu or with the script command:

CODE
mc.file( "c:\test", type="mayaBinary", exportAll=True, force=True );

saves the file, BUT when i open the scene the curve is the old one, which hasn't 30 control points. I know this sounds pretty unbelievable but i double checked it.

Can anybody help?

Greetings chris

QUOTE(beuzel @ 06/12/09, 02:36 PM) [snapback]309360[/snapback]
saves the file, BUT when i open the scene the curve is the old one, which hasn't 30 control points. I know this sounds pretty unbelievable but i double checked it.

Well taking into account how maya actually works it does not sound entirely out of the question.

QUOTE(beuzel @ 06/12/09, 02:36 PM) [snapback]309360[/snapback]
CODE
newCurve = mc.rebuildCurve( curveTrans,
ch=0, cch=0, rpo=1,rt=0,end=1,kr=0,kcp=0,kep=1,kt=0,s=30,d=1,tol=0.01 )

Well fist of are you aware that saying ch=0 does not actually GUARANTEE you get the result without history. Maya does not actually respect your wishes if its impossible and just proceeds doing so with history instead of bailing out maya makes history if you already have history on the curve. This applies to flags such as rpo aswell

Now this could mean 2 curves would exist in the scene and maya just swaps the out in order and you somehow just missed the other curve. Or the node subsequently fails on load. Tough i highly doubt this is the issue.

What i on the other hand do think is something you ought to check, s whether or not yoru timestamps on the file match. Mayas been known not to save out even when you think it has. But more than so i think mayas running a bit ahead itself so try deferring the file save by a small while to let maya have chance to rebuild the curve ready. As some functions multithread.

You probably shouldn't be using the cch flag as it can only cause you trouble unless your really on the top of your game.