Simple example how to create path attribute in Houdini with VEX which represent scene hierarchy for alembic export:
// Perprim wrangle// Get and define var attrib from primitivesstring var_prim_attr = itoa(i@variant); // has to be packed primstring primnum_attr = itoa(i@primnum); // Path builderstring root_dir = chs("root_dir") + "/";string item_var_dir = chs("item_var") + var_prim_attr;string var_geo_name = "/" + chs("var_geo_name") + "_" + var_prim_attr + "_geo_" + primnum_attr;string shape = "Shape"; string var_path = root_dir + item_var_dir + var_geo_name + var_geo_name + shape; // Cast @path attributes@path = var_path;
string path_attr = "/objects/geo1/geo1Shape";string name = split(path_attr, "/", -1);