Force connection between alembicNode and transforms on static meshes

157 views
Skip to first unread message

Yasin Hasanian

unread,
Jun 16, 2016, 4:55:02 PM6/16/16
to alembic-discussion
Hi,

How can I enforce abcImport to connect the alembicNode (transOp attributes I guess) to the created poly mesh transformations? If the object is animated, that gets created by default, I'm wondering what part of abcImport needs to get changed so that it enforces the connection on static poly meshes too?

Thanks

Lucas Miller

unread,
Jun 16, 2016, 5:07:05 PM6/16/16
to alembic-d...@googlegroups.com
I think some folks modified the check for isAnimated in their
customizations of the plugin so it would add connections despite being
static.
> --
> You received this message because you are subscribed to the Google Groups
> "alembic-discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to alembic-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Yasin Hasanian

unread,
Jun 16, 2016, 5:11:32 PM6/16/16
to alembic-discussion
Thanks Lucas, I think you mean isConstant?

I already tried setting it to false on createSceneHelper xform but that didn't help (it's also false on the poly mesh). Any other places I'm missing?

Yasin Hasanian

unread,
Jun 16, 2016, 5:39:40 PM6/16/16
to alembic-discussion
Or do you mean the isAnimated in abcExport? I only see it there.

Can't it be done via abcImport?

Lucas Miller

unread,
Jun 16, 2016, 5:40:11 PM6/16/16
to alembic-d...@googlegroups.com
I meant on the import side.

On Thu, Jun 16, 2016 at 2:39 PM, 'Yasin Hasanian' via
>>> > email to alembic-discuss...@googlegroups.com.
>>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "alembic-discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to alembic-discuss...@googlegroups.com.

Yasin Hasanian

unread,
Jun 16, 2016, 5:42:50 PM6/16/16
to alembic-discussion
I see. Well, I'm not sure where else I'm missing to set it on the import so that it always create the connections.
>>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "alembic-discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Yasin Hasanian

unread,
Jun 16, 2016, 6:59:20 PM6/16/16
to alembic-discussion
Additionally, I just made isComplex() return true at the end and that seems to be doing the trick. Hopefully, it's not breaking anything!

Yasin Hasanian

unread,
Jun 17, 2016, 8:56:57 AM6/17/16
to alembic-discussion
Ok, this approach didn't fully satisfy all cases sadly, in CONNECT mode, there are situations that the connection offsets the geos. If I break the connection and reset transformations for that objects to 0, it snaps back in place with correct animation. I haven't figured out yet, in what situation this offset occurs. A simple import does not cause this and at the same time enforces connection on all geos which is expected, but the fact that CONNECT and CREATE work differently in this case, i don't get it!

Other than that, it seems like enforcing all these connections make the scene heavier to evaluate... The other option I'm trying to figure out is how I can rebuild xform connections if I repath the alembicNode path. I've already made changes that takes care of the repathing for the most parts, but in situations that there is no connection between alembicNode and transformations, repathing offsets the geo too unless I can make it re-read the xform values from the new path (I think this happens if there is only vertex animations/transformation in the cache). This would also allow not having to create all those connections with previous method.

Does any have an idea for this case?

craig....@nvizible.com

unread,
Nov 23, 2017, 4:46:33 AM11/23/17
to alembic-discussion
Hey Yasin

Did you ever get any further with this?  I've been looking to solve a similar problem my end and any more info would be appreciated.

Regards

Craig

Yasin Hasanian

unread,
Nov 23, 2017, 12:24:09 PM11/23/17
to alembic-discussion
Hi Craig,

Are you basically looking for a way to connect outPoly of alembic node to objects inMesh? If so, just setting isConstant to false on abcImport would do the trick. (mentioned in early posts of this thread)

Hope it helps.

craig....@nvizible.com

unread,
Nov 24, 2017, 12:23:41 PM11/24/17
to alembic-discussion
Yes that's right Yasin, I saw that thanks.

I'm guessing I'll have to build a newer version for use in Maya 2016 if I want to be able to set that flag?


Regards

Craig

On Thursday, 16 June 2016 21:55:02 UTC+1, Yasin Hasanian wrote:

Yasin Hasanian

unread,
Nov 24, 2017, 12:28:08 PM11/24/17
to alembic-discussion
Yes, it requires a custom build of plugin. 

craig....@nvizible.com

unread,
Nov 24, 2017, 12:29:20 PM11/24/17
to alembic-discussion
Cool - thank you!


On Thursday, 16 June 2016 21:55:02 UTC+1, Yasin Hasanian wrote:
Reply all
Reply to author
Forward
0 new messages