Issue 36 in cortex-vfx: MeshPrimitiveParameter in Op causes error when re-loading maya scene.

1 view
Skip to first unread message

corte...@googlecode.com

unread,
Nov 11, 2010, 8:20:50 PM11/11/10
to cortex...@googlegroups.com
Status: New
Owner: ----

New issue 36 by rogier.fransen: MeshPrimitiveParameter in Op causes error
when re-loading maya scene.
http://code.google.com/p/cortex-vfx/issues/detail?id=36

1. Create a python Op exposing a MeshPrimitiveParameter.
2. Create an Opholder node for this in a Maya scene.
3. Connect a Maya mesh. (Works as expected.)
4. Save the .ma file
5. Reload the .ma file

On reload of the file maya gives an error about incompatible parent
attributes and does not make the connection between the mesh and the
OpHolder node.

Cortex v5.

Rogier Fransen
rogier....@drdstudios.com


corte...@googlecode.com

unread,
Nov 12, 2010, 1:21:07 PM11/12/10
to cortex...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 36 by thehaddonyoof: MeshPrimitiveParameter in Op

causes error when re-loading maya scene.
http://code.google.com/p/cortex-vfx/issues/detail?id=36

I'm seeing that here too. I'm not sure when I'll get a chance to look at
this so I hope one of these workarounds will be acceptable. I find that
using an ObjectParameter like this doesn't give me the problem :

IECore.ObjectParameter(
name = "meshyMesh",
description = "",
defaultValue = IECore.MeshPrimitive.createBox( IECore.Box3f( IECore.V3f(
-1 ), IECore.V3f( 1 ) ) ),
types = [ IECore.MeshPrimitive.staticTypeId() ],
)

We also frequently use this form which gives a Group containing a bunch of
geometry, along with some useful UI entries to help make connections etc :

IECore.ObjectParameter(
name = "geometry",
description = "",
defaultValue = IECore.Group(),
types = [ IECore.VisibleRenderable.staticTypeId() ],
userData = {
"maya" : {
"useGeometryCombiner" : IECore.BoolData( True ),
},
},
),

Will either of those do the job for you? One other option may be to make
the connection from outMesh rather than worldMesh - that seemed to work for
me too.

corte...@googlecode.com

unread,
Nov 12, 2010, 1:27:15 PM11/12/10
to cortex...@googlegroups.com

Comment #2 on issue 36 by thehaddonyoof: MeshPrimitiveParameter in Op
causes error when re-loading maya scene.
http://code.google.com/p/cortex-vfx/issues/detail?id=36

Attaching a simple Op which can be used to demonstrate the problem.

Attachments:
testMeshInput-1.py 542 bytes

corte...@googlecode.com

unread,
Nov 12, 2010, 1:31:20 PM11/12/10
to cortex...@googlegroups.com
Updates:
Owner: john.imageengine

Comment #3 on issue 36 by thehaddonyoof: MeshPrimitiveParameter in Op

causes error when re-loading maya scene.
http://code.google.com/p/cortex-vfx/issues/detail?id=36

(No comment was entered for this change.)

corte...@googlecode.com

unread,
Nov 15, 2010, 8:45:50 PM11/15/10
to cortex...@googlegroups.com
Updates:
Labels: Type-Defect Component-IECoreMaya Priority-Low

Comment #4 on issue 36 by andrewk.imageengine: MeshPrimitiveParameter in Op

corte...@googlecode.com

unread,
Nov 16, 2010, 5:10:05 PM11/16/10
to cortex...@googlegroups.com

Comment #5 on issue 36 by rogier.fransen: MeshPrimitiveParameter in Op
causes error when re-loading maya scene.
http://code.google.com/p/cortex-vfx/issues/detail?id=36

Yes, changing it to an ObjectParameter does the job perfectly fine.

Sorry, I should have mentioned that in the report. We actually started with
that (ObjectParameter) probably as result of copy and paste from an
existing Op.

It was only when we thought we were being smart that we changed it to
MeshParameter. Turns out that was not such a smart move...

corte...@googlecode.com

unread,
Jul 28, 2011, 7:55:00 PM7/28/11
to cortex...@googlegroups.com
Updates:
Status: Fixed
Owner: andrewk....@gmail.com

Comment #6 on issue 36 by andrewk....@gmail.com: MeshPrimitiveParameter in

Op causes error when re-loading maya scene.
http://code.google.com/p/cortex-vfx/issues/detail?id=36

This is fixed in r4298. See the comment in
src/IECoreMaya/MeshParameterHandler.cpp for an explanation of the bug.

Reply all
Reply to author
Forward
0 new messages