sexta-feira, 1 de junho de 2018

User Attributes from maya to Houdini using Alembic


In Maya create a new attribute inside  your object transform node and fill it up with your data   
Go inside Alembic options . add your attribute using channel box or just write down inside attribute box and prefix box . then inside Houdini will be  possible access this attribute from disk using python expression 


import _alembic_hom_extensions as abc 
import hou 
value = abc.alembicArbGeometry("/Volumes/Raid0/GREEN/HOUDINI/USERS/LUCAS/abc/INFO.abc","CAM_EXTRA_","zoom",hou.frame() /24)[0][0]
return(value)


command Usage:
alembicArbGeometry("filePath","objPath" , "userAttribute" , sample time )

actually this command return a tuple of values , we are just looking for inside values,  that's why 
we add [0[[0] at the end