Exocortex / ExocortexCrate

http://exocortex.com/products/crate
BSD 3-Clause "New" or "Revised" License
134 stars 68 forks source link

Replace non-animated cache with animated cache #34

Open AntoineFlo opened 9 years ago

AntoineFlo commented 9 years ago

Hello there,

I found a bug when I try to switch the .abc file from a non-animated cache (exInframe=1,exOutFrame=1) to an animated cache (exInframe=1,exOutFrame=20) in the 'ExocortexAlembicFile1'

Last exocortex crate sources built on Centos6 Maya 2015

  1. export a 'non-animated' cache from a scene with transforms

from ExocortexAlembic import _export /* select your mesh transforms */ _export.doIt(exportPath,1,1)

  1. from the same scene, make an animated cache

/* make a fake anim / / select your mesh transforms */ _export.doIt(exportPath,1,20)

  1. with the same scene, attach the non-animated cache to create all exocortex nodes

path = 'the non-animated.abc file' importNormals = '0' importUvs = '1' importFaceSets = '1' overTransforms = '1' overDeforms = '1'

job = "filename=" + path + ";normals=" + importNormals + ";uvs=" + importUvs + ";facesets=" + importFaceSets + ";attachToExisting=1;overXforms=" + overTransforms + ";overDforms=" + overDeforms

cmds.ExocortexAlembic_import(j=job)

=> it creates the exocortex nodes but the in time of any 'ExocortexAlembicXform' and 'ExocortexAlembicPolyMeshDeform' is not connected to anything

  1. Switch the filename in 'ExocortexAlembicFile1' with the animated.abc

=> the animation is not there => if I connect 'ExocortexAlembicFile1.inTime' on 'ExocortexAlembicXform.inTime', still not there => if I connect 'ExocortexAlembicTimeControl.inTime' on 'ExocortexAlembicXform.inTime' I got the animation

So would it be possible to have the time connected, no matter what the frame range of the export ? If I did something wrong in my workflow, please let me know

Thanks, Antoine

pabloemmanueldeleo commented 7 years ago

Hi Antone. I have the same problem. in my case i cant do attach alembic with deformed and with namespace. If you resolve the problem please tell me. Thanks.