Writing SceneInterface files from maya... example?

34 views
Skip to first unread message

Hradec

unread,
Oct 10, 2014, 2:07:04 PM10/10/14
to cortexdev

Hi guys...

I'm really interested in start playing with cortex scene interface, but as we mainly using Maya at Atomo, it would be really nice to see some example code of how to export it from maya!

If you guys can drop me some lines on how to do it, I can add it to cortex wiki too!!

cheers...



-H
blog   home

Andrew Kaufman

unread,
Oct 10, 2014, 2:32:01 PM10/10/14
to cort...@googlegroups.com
Yeah, we really should just include a default exporter with IECoreMaya... IECoreHoudini has a ROP, which we do actually use directly in production, but our Maya exports are currently very custom and live in our asset management codebase. It should be a fairly straightforward algorithm to export from Maya if you don't need loads of customization though, and would likely be quite similar to IECoreHoudini::ROP_SceneCacheWriter::doWrite (ignoring the extra mode customization), using IECoreMaya::LiveScene instead of IECoreHoudini::LiveScene. Basically, you just need to recurse down the hierarchy using liveScene->childNames(), and at each level, read the transform, attributes, tags, and object from the liveScene and write them into the outScene.

Andrew

--
--
You received this message because you are subscribed to the "cortexdev" group.
To post to this group, send email to cort...@googlegroups.com
To unsubscribe from this group, send email to cortexdev-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cortexdev?hl=en
---
You received this message because you are subscribed to the Google Groups "cortexdev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cortexdev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages