Closed GoogleCodeExporter closed 8 years ago
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.
Original comment by thehaddo...@gmail.com
on 12 Nov 2010 at 6:20
Attaching a simple Op which can be used to demonstrate the problem.
Original comment by thehaddo...@gmail.com
on 12 Nov 2010 at 6:26
Attachments:
Original comment by thehaddo...@gmail.com
on 12 Nov 2010 at 6:26
Original comment by andrewk....@gmail.com
on 16 Nov 2010 at 1:44
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...
Original comment by rogier.f...@gmail.com
on 16 Nov 2010 at 10:09
This is fixed in r4298. See the comment in
src/IECoreMaya/MeshParameterHandler.cpp for an explanation of the bug.
Original comment by andrewk....@gmail.com
on 28 Jul 2011 at 11:54
Original issue reported on code.google.com by
rogier.f...@gmail.com
on 12 Nov 2010 at 1:20