Issue 290 in alembic: "-sl" option in Maya AbcExport does nothing

25 views
Skip to first unread message

ale...@googlecode.com

unread,
Sep 6, 2012, 7:00:58 AM9/6/12
to alemb...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect FoundBy-Community

New issue 290 by syoyofuj...@gmail.com: "-sl" option in Maya AbcExport does
nothing
http://code.google.com/p/alembic/issues/detail?id=290

What steps will reproduce the problem?

Use Alembic 1.1(from source)
AbcExport -j "-sl -file /path/to/file.abc"


Please provide any additional information below.

"-sl" option(which do exporting only selected nodes) does nothing in
AbcExport.cpp ...

else if (jobArgs.useSelectionList)
{
MSelectionList activeList;
MGlobal::getActiveSelectionList(activeList);
if (activeList.length() == 0)
{
MString errorMsg =
"-selection specified but nothing is actively
selected.";
MGlobal::displayError(errorMsg);
return MS::kFailure;
}
}

ale...@googlecode.com

unread,
Sep 6, 2012, 12:30:56 PM9/6/12
to alemb...@googlegroups.com

Comment #1 on issue 290 by miller.lucas: "-sl" option in Maya AbcExport
does nothing
http://code.google.com/p/alembic/issues/detail?id=290

Did you have anything selected in your scene?

I just tested this and it's exporting what I have selected.

ale...@googlecode.com

unread,
Sep 6, 2012, 12:58:24 PM9/6/12
to alemb...@googlegroups.com
Updates:
Status: Done

Comment #2 on issue 290 by miller.lucas: "-sl" option in Maya AbcExport
does nothing
http://code.google.com/p/alembic/issues/detail?id=290

Also the code you quoted in AbcExport.cpp is just a quick check for
correctness.

The logic that does the real thing is here:
http://code.google.com/p/alembic/source/browse/maya/AbcExport/AbcWriteJob.cpp?name=1_01_00#260

ale...@googlecode.com

unread,
Sep 6, 2012, 1:39:30 PM9/6/12
to alemb...@googlegroups.com

Comment #3 on issue 290 by syoyofuj...@gmail.com: "-sl" option in Maya
Yes > Did you have anything selected in your scene?

1) Create a simple plane geometry & select it in Maya
2) AbcExport -j "-sl -file /path/to/file.abc";

Then, what I actually get is,

$ ls -la file.abc
-rw-r--r-- 1 syoyo staff 4487 Sep 7 02:37 geometry.abc

// Alembic file info:
# of children: 1
ScalarProperty name=statistics:interpretation=:datatype=string:numsamps=1
ScalarProperty
name=.childBnds:interpretation=box:datatype=float64_t[6]:numsamps=1
Xform:
trans
Object: name = /pPlane1
CompoundProperty name=.xform:schema=AbcGeom_Xform_v3
ScalarProperty name=.ops:interpretation=:datatype=uint8_t:numsamps=1
ArrayProperty
name=.animChans:interpretation=:datatype=uint32_t:numsamps=1
ScalarProperty
name=isNotConstantIdentity:interpretation=:datatype=bool_t:numsamps=1
ScalarProperty name=.inherits:interpretation=:datatype=bool_t:numsamps=1
ScalarProperty
name=.vals:interpretation=:datatype=float64_t[3]:numsamps=1
# of samples: 0
min time : 0
max time : 0

There are node info, but lacks any primitive parameters(e.g. P, N)

3) AbcExport -j "-root |pPlane1 -file /path/to/file.abc";

When I specify a geometry explicitly, which gives,

$ ls -la file.abc
-rw-r--r-- 1 syoyo staff 9686 Sep 7 02:32 file.abc

// Alembic file info:
# of children: 1
ScalarProperty name=statistics:interpretation=:datatype=string:numsamps=1
ScalarProperty
name=.childBnds:interpretation=box:datatype=float64_t[6]:numsamps=1
Xform:
trans
Object: name = /pPlane1
CompoundProperty name=.xform:schema=AbcGeom_Xform_v3
ScalarProperty name=.ops:interpretation=:datatype=uint8_t:numsamps=1
ArrayProperty
name=.animChans:interpretation=:datatype=uint32_t:numsamps=1
ScalarProperty
name=isNotConstantIdentity:interpretation=:datatype=bool_t:numsamps=1
ScalarProperty name=.inherits:interpretation=:datatype=bool_t:numsamps=1
ScalarProperty
name=.vals:interpretation=:datatype=float64_t[3]:numsamps=1
PolyMesh:
# of samples = 1
# of positions = 4
# of counts = 1
Object: name = /pPlane1/pPlaneShape1
CompoundProperty name=.geom:schema=AbcGeom_PolyMesh_v1
ArrayProperty
name=.faceCounts:interpretation=:datatype=int32_t:numsamps=1
ArrayProperty
name=.faceIndices:interpretation=:datatype=int32_t:numsamps=1
ArrayProperty
name=P:interpretation=point:datatype=float32_t[3]:numsamps=1
ArrayProperty
name=N:interpretation=normal:datatype=float32_t[3]:numsamps=1
ScalarProperty
name=.selfBnds:interpretation=box:datatype=float64_t[6]:numsamps=1
# of samples: 1
min time : 0
max time : 0



As far as I know, I didn't get this strange behavior in Alembic 1.0.4.

FYI, I'm using Maya 2012 x64 SP on Mac SnowLeopard.


ale...@googlecode.com

unread,
Sep 6, 2012, 1:41:21 PM9/6/12
to alemb...@googlegroups.com

Comment #4 on issue 290 by syoyofuj...@gmail.com: "-sl" option in Maya
I mean "-sl" option works correctly > As far as I know, I didn't get this

ale...@googlecode.com

unread,
Sep 6, 2012, 1:59:07 PM9/6/12
to alemb...@googlegroups.com

Comment #5 on issue 290 by miller.lucas: "-sl" option in Maya AbcExport
does nothing
http://code.google.com/p/alembic/issues/detail?id=290

When you create the plane (via polyPlane for example), only the parent
transform is actually selected by default.

ale...@googlecode.com

unread,
Sep 6, 2012, 2:05:55 PM9/6/12
to alemb...@googlegroups.com

Comment #6 on issue 290 by syoyofuj...@gmail.com: "-sl" option in Maya
So did you changed the behavior of "-sl" in ver 1.1 from 1.0.4? I think
only exporting transformation node is meaning less in most case.

ale...@googlecode.com

unread,
Sep 6, 2012, 2:28:45 PM9/6/12
to alemb...@googlegroups.com

Comment #7 on issue 290 by miller.lucas: "-sl" option in Maya AbcExport
does nothing
http://code.google.com/p/alembic/issues/detail?id=290

Yes, there was this change:
http://code.google.com/r/millerlucas-dev/source/detail?r=157df2c32ff09148af5311672f791d1e151ea9d5

Exporting only transforms is a valid workflow.

If you find that using -selection is deficient because you do not want to
select the appropriate meshes, you can use -root to write out all nodes at
and below the specified node.

ale...@googlecode.com

unread,
Sep 7, 2012, 2:58:19 AM9/7/12
to alemb...@googlegroups.com

Comment #8 on issue 290 by syoyofuj...@gmail.com: "-sl" option in Maya
Hmm...

So what is best way to export multple selection nodes including its child
shape nodes(selection done on Maya viewport will select xfrom node) as easy
as previous "-sl" option?



ale...@googlecode.com

unread,
Sep 7, 2012, 12:45:42 PM9/7/12
to alemb...@googlegroups.com

Comment #9 on issue 290 by miller.lucas: "-sl" option in Maya AbcExport
does nothing
http://code.google.com/p/alembic/issues/detail?id=290

You can select things in the Maya viewport and press the down key, that
should select the shapes in most cases.

Reply all
Reply to author
Forward
0 new messages