Isotropix Forums

export_context_as_project_with_dependencies bug?

Clarisse Scripting related topics

export_context_as_project_with_dependencies bug?

Unread postby bvz » Fri Sep 13, 2019 10:21 pm

I'm trying to determine if this is a bug...

If I run the following command:

ix.export_context_as_project_with_dependencies(ix.selection[0], "/home/test.project")

The exported project will have all of its alembic references broken.


Specifically, if I reference in an alembic:

Code: Select all
my_alembic (/home/leaf_alembic.abc)
--leaf1
--leaf2


then the exported project, when read back in, looks like this

Code: Select all
my_alembic (<-- this is now just a context)
--leaf1  (/home/leaf_alembic.abc)  (<-- these now each point to the alembic separately)
--leaf2  (/home/leaf_alembic.abc)




As an example, here is a context exported without dependencies (using the menu in the clarisse gui)

Code: Select all
#Isotropix_Serial_Version 1.2

#Isotropix_Clarisse_Version 4
#Isotropix_Clarisse_Project_Version 0.94
Reference "veh_bargeSm_A" {
    #created 1568409397
    options {
        filename "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
    }
}


And here is the exact same context exported with dependencies (again, using the Clarisse GUI):

Code: Select all
#Isotropix_Serial_Version 1.2

#Isotropix_Clarisse_Version 4
#Isotropix_Clarisse_Project_Version 0.94
Context "veh_bargeSm_A" {
    #created 1568409397
    options {
        filename "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
    }
    AbcXform {
        name "veh_bargeSm_A"
        #version 0.99
        #created 1568409397
        #modified 1568409397
        inherit_transform yes
        filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
        object_name "/veh_bargeSm_A"
        data_hash_key_timestamp 1568406577
        frame {
            value 0
            expression "F"
        }
        anim_frame_count 1
        base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
        anim_range 0.0 0.0
    }
    GeometryAbcMesh {
        name "veh_bargeSm_A_main001_PNTShape"
        #version 0.98
        #created 1568409397
        #modified 1568409397
        parent "project://veh_bargeSm_A/veh_bargeSm_A"
        inherit_transform yes
        uv_maps "uv"
        uv_maps_loaded yes
        shading_groups "default"
        materials "project://default/material"
        clip_maps ""
        displacements ""
        sg_shading_variables ""
        visibles yes
        filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
        object_name "/veh_bargeSm_A/veh_bargeSm_A_main001_PNT/veh_bargeSm_A_main001_PNTShape"
        base_data_hash_key "ABC::a7cf242f94eb16d332e7aab86cf47d8c:a219f740f92e4015f3c7ae5b6cff7587:d73fbacb7ced54c644f198e20ccdea57:07c59bec9704aa510450397c9dea5286"
        properties_hash_key "ABC:a7cf242f94eb16d332e7aab86cf47d8c:a219f740f92e4015f3c7ae5b6cff7587:81c8944273c85bbae7982796e83a81eb:d73fbacb7ced54c644f198e20ccdea57:cd06421b3f70ac68db092cc8c037b627:07c59bec9704aa510450397c9dea5286"
        data_hash_key_timestamp 1568406577
        frame {
            value 0
            expression "F"
        }
        deformation_type 0
        deform_frame_count 1
        base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
        anim_range 0.0 0.0
        deform_range 0.0 0.0
    }
    GeometryAbcMesh {
        name "veh_bargeSm_A_structure001_PNTShape"
        #version 0.98
        #created 1568409397
        #modified 1568409397
        parent "project://veh_bargeSm_A/veh_bargeSm_A"
        inherit_transform yes
        uv_maps "uv"
        uv_maps_loaded yes
        shading_groups "default"
        materials "project://default/material"
        clip_maps ""
        displacements ""
        sg_shading_variables ""
        visibles yes
        filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
        object_name "/veh_bargeSm_A/veh_bargeSm_A_structure001_PNT/veh_bargeSm_A_structure001_PNTShape"
        base_data_hash_key "ABC::c9c76816faf7d36168ec600f649876a2:18a1c9efc5ee493daca55ea7ebcde5b8:180eefe2efa2d6b767e90b3682947841:bd0839ae24dbdd574b82f7124d6253b2"
        properties_hash_key "ABC:c9c76816faf7d36168ec600f649876a2:18a1c9efc5ee493daca55ea7ebcde5b8:156c326fae1a98a9ba4b647d5237418e:180eefe2efa2d6b767e90b3682947841:f3e2d0af85c5ebc5145656ac28328672:bd0839ae24dbdd574b82f7124d6253b2"
        data_hash_key_timestamp 1568406577
        frame {
            value 0
            expression "F"
        }
        deformation_type 0
        deform_frame_count 1
        base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
        anim_range 0.0 0.0
        deform_range 0.0 0.0
    }
    GeometryAbcMesh {
        name "veh_bargeSm_A_railing001_CHRShape"
        #version 0.98
        #created 1568409397
        #modified 1568409397
        parent "project://veh_bargeSm_A/veh_bargeSm_A"
        inherit_transform yes
        uv_maps "uv"
        uv_maps_loaded yes
        shading_groups "default"
        materials "project://default/material"
        clip_maps ""
        displacements ""
        sg_shading_variables ""
        visibles yes
        filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
        object_name "/veh_bargeSm_A/veh_bargeSm_A_railing001_CHR/veh_bargeSm_A_railing001_CHRShape"
        base_data_hash_key "ABC::f69cd2c00fd58d61bf02a8dc4439c9b4:0e2520afb41434433996be032aaab6d4:e9a675b06045aa04b6a6a7430a82433f:46c8fe516f8769d09f9fea7cf54f13df"
        properties_hash_key "ABC:f69cd2c00fd58d61bf02a8dc4439c9b4:0e2520afb41434433996be032aaab6d4:9df985ca949b1629878862cb6d930dbe:e9a675b06045aa04b6a6a7430a82433f:22292aa90f4a65613d03d5ea50e3671d:46c8fe516f8769d09f9fea7cf54f13df"
        data_hash_key_timestamp 1568406577
        frame {
            value 0
            expression "F"
        }
        deformation_type 0
        deform_frame_count 1
        base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
        anim_range 0.0 0.0
        deform_range 0.0 0.0
    }
    GeometryAbcMesh {
        name "veh_bargeSm_A_mound001_RBRShape"
        #version 0.98
        #created 1568409397
        #modified 1568409397
        parent "project://veh_bargeSm_A/veh_bargeSm_A"
        inherit_transform yes
        uv_maps "uv"
        uv_maps_loaded yes
        shading_groups "default"
        materials "project://default/material"
        clip_maps ""
        displacements ""
        sg_shading_variables ""
        visibles yes
        filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
        object_name "/veh_bargeSm_A/veh_bargeSm_A_mound001_RBR/veh_bargeSm_A_mound001_RBRShape"
        base_data_hash_key "ABC::3babe8946c329b518e7a698ae7679934:8224540a714ef083ef5879969cbc68e7:d98eea3466c75365e7aa819f5cc13aa6:1f35686cb0a38cf007b30e072e907303"
        properties_hash_key "ABC:3babe8946c329b518e7a698ae7679934:8224540a714ef083ef5879969cbc68e7:7d386b3042bbe5cba8505428908c8eaf:d98eea3466c75365e7aa819f5cc13aa6:0dc4c109fff9e02dedae934229f09d51:1f35686cb0a38cf007b30e072e907303"
        data_hash_key_timestamp 1568406577
        frame {
            value 0
            expression "F"
        }
        deformation_type 0
        deform_frame_count 1
        base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
        anim_range 0.0 0.0
        deform_range 0.0 0.0
    }
    GeometryAbcMesh {
        name "veh_bargeSm_A_crates001_PLSShape"
        #version 0.98
        #created 1568409397
        #modified 1568409397
        parent "project://veh_bargeSm_A/veh_bargeSm_A"
        inherit_transform yes
        uv_maps "uv"
        uv_maps_loaded yes
        shading_groups "default"
        materials "project://default/material"
        clip_maps ""
        displacements ""
        sg_shading_variables ""
        visibles yes
        filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
        object_name "/veh_bargeSm_A/veh_bargeSm_A_crates001_PLS/veh_bargeSm_A_crates001_PLSShape"
        base_data_hash_key "ABC::877836862f7de683cb79cb4592479073:c517a39d0c19fa8713d013dd784bec3b:08a14fc7ece702ca9c249379bd77a371:3a89ffbf978730ac91bf3bc2f85c77cd"
        properties_hash_key "ABC:877836862f7de683cb79cb4592479073:c517a39d0c19fa8713d013dd784bec3b:9b3c26f8c3cfc940251594ed1b296ac0:08a14fc7ece702ca9c249379bd77a371:88b2980299f529fad35fcfce2198f70e:3a89ffbf978730ac91bf3bc2f85c77cd"
        data_hash_key_timestamp 1568406577
        frame {
            value 0
            expression "F"
        }
        deformation_type 0
        deform_frame_count 1
        base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
        anim_range 0.0 0.0
        deform_range 0.0 0.0
    }
}


You can see how the second one now has each individual alembic leaf node as a separate, imported object.

This seems like a bug to me, but I want to make sure of that before I submit it as such.
bvz
 
Posts: 51
Joined: Tue Dec 03, 2013 9:55 am

Re: export_context_as_project_with_dependencies bug?

Unread postby bvz » Fri Sep 13, 2019 10:28 pm

Note: This function also breaks referenced projects. I.e.

Here is a project that was exported from the Clarisse GUI without dependencies:

Code: Select all
#Isotropix_Serial_Version 1.2

#Isotropix_Clarisse_Version 4
#Isotropix_Clarisse_Project_Version 0.94
Reference "no_deps" {
    #created 1568409806
    options {
        filename "/home/no_deps.project"
    }
}


and here is that same project exported with dependencies:

Code: Select all
#Isotropix_Serial_Version 1.2

#Isotropix_Clarisse_Version 4
#Isotropix_Clarisse_Project_Version 0.94
Context "no_deps" {
    #created 1568409806
    options {
        filename "/home/no_deps.project"
    }
    Context "veh_bargeSm_A" {
        #created 1568409397
        options {
            filename "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
        }
        AbcXform {
            name "veh_bargeSm_A"
            #version 0.99
            #created 1568409806
            #modified 1568409806
            inherit_transform yes
            filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
            object_name "/veh_bargeSm_A"
            data_hash_key_timestamp 1568406577
            frame {
                value 0
                expression "F"
            }
            anim_frame_count 1
            base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
            anim_range 0.0 0.0
        }
        GeometryAbcMesh {
            name "veh_bargeSm_A_main001_PNTShape"
            #version 0.98
            #created 1568409806
            #modified 1568409806
            parent "project://no_deps/veh_bargeSm_A/veh_bargeSm_A"
            inherit_transform yes
            uv_maps "uv"
            uv_maps_loaded yes
            shading_groups "default"
            materials "project://default/material"
            clip_maps ""
            displacements ""
            sg_shading_variables ""
            visibles yes
            filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
            object_name "/veh_bargeSm_A/veh_bargeSm_A_main001_PNT/veh_bargeSm_A_main001_PNTShape"
            base_data_hash_key "ABC::a7cf242f94eb16d332e7aab86cf47d8c:a219f740f92e4015f3c7ae5b6cff7587:d73fbacb7ced54c644f198e20ccdea57:07c59bec9704aa510450397c9dea5286"
            properties_hash_key "ABC:a7cf242f94eb16d332e7aab86cf47d8c:a219f740f92e4015f3c7ae5b6cff7587:81c8944273c85bbae7982796e83a81eb:d73fbacb7ced54c644f198e20ccdea57:cd06421b3f70ac68db092cc8c037b627:07c59bec9704aa510450397c9dea5286"
            data_hash_key_timestamp 1568406577
            frame {
                value 0
                expression "F"
            }
            deformation_type 0
            deform_frame_count 1
            base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
            anim_range 0.0 0.0
            deform_range 0.0 0.0
        }
        GeometryAbcMesh {
            name "veh_bargeSm_A_structure001_PNTShape"
            #version 0.98
            #created 1568409806
            #modified 1568409806
            parent "project://no_deps/veh_bargeSm_A/veh_bargeSm_A"
            inherit_transform yes
            uv_maps "uv"
            uv_maps_loaded yes
            shading_groups "default"
            materials "project://default/material"
            clip_maps ""
            displacements ""
            sg_shading_variables ""
            visibles yes
            filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
            object_name "/veh_bargeSm_A/veh_bargeSm_A_structure001_PNT/veh_bargeSm_A_structure001_PNTShape"
            base_data_hash_key "ABC::c9c76816faf7d36168ec600f649876a2:18a1c9efc5ee493daca55ea7ebcde5b8:180eefe2efa2d6b767e90b3682947841:bd0839ae24dbdd574b82f7124d6253b2"
            properties_hash_key "ABC:c9c76816faf7d36168ec600f649876a2:18a1c9efc5ee493daca55ea7ebcde5b8:156c326fae1a98a9ba4b647d5237418e:180eefe2efa2d6b767e90b3682947841:f3e2d0af85c5ebc5145656ac28328672:bd0839ae24dbdd574b82f7124d6253b2"
            data_hash_key_timestamp 1568406577
            frame {
                value 0
                expression "F"
            }
            deformation_type 0
            deform_frame_count 1
            base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
            anim_range 0.0 0.0
            deform_range 0.0 0.0
        }
        GeometryAbcMesh {
            name "veh_bargeSm_A_railing001_CHRShape"
            #version 0.98
            #created 1568409806
            #modified 1568409806
            parent "project://no_deps/veh_bargeSm_A/veh_bargeSm_A"
            inherit_transform yes
            uv_maps "uv"
            uv_maps_loaded yes
            shading_groups "default"
            materials "project://default/material"
            clip_maps ""
            displacements ""
            sg_shading_variables ""
            visibles yes
            filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
            object_name "/veh_bargeSm_A/veh_bargeSm_A_railing001_CHR/veh_bargeSm_A_railing001_CHRShape"
            base_data_hash_key "ABC::f69cd2c00fd58d61bf02a8dc4439c9b4:0e2520afb41434433996be032aaab6d4:e9a675b06045aa04b6a6a7430a82433f:46c8fe516f8769d09f9fea7cf54f13df"
            properties_hash_key "ABC:f69cd2c00fd58d61bf02a8dc4439c9b4:0e2520afb41434433996be032aaab6d4:9df985ca949b1629878862cb6d930dbe:e9a675b06045aa04b6a6a7430a82433f:22292aa90f4a65613d03d5ea50e3671d:46c8fe516f8769d09f9fea7cf54f13df"
            data_hash_key_timestamp 1568406577
            frame {
                value 0
                expression "F"
            }
            deformation_type 0
            deform_frame_count 1
            base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
            anim_range 0.0 0.0
            deform_range 0.0 0.0
        }
        GeometryAbcMesh {
            name "veh_bargeSm_A_mound001_RBRShape"
            #version 0.98
            #created 1568409806
            #modified 1568409806
            parent "project://no_deps/veh_bargeSm_A/veh_bargeSm_A"
            inherit_transform yes
            uv_maps "uv"
            uv_maps_loaded yes
            shading_groups "default"
            materials "project://default/material"
            clip_maps ""
            displacements ""
            sg_shading_variables ""
            visibles yes
            filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
            object_name "/veh_bargeSm_A/veh_bargeSm_A_mound001_RBR/veh_bargeSm_A_mound001_RBRShape"
            base_data_hash_key "ABC::3babe8946c329b518e7a698ae7679934:8224540a714ef083ef5879969cbc68e7:d98eea3466c75365e7aa819f5cc13aa6:1f35686cb0a38cf007b30e072e907303"
            properties_hash_key "ABC:3babe8946c329b518e7a698ae7679934:8224540a714ef083ef5879969cbc68e7:7d386b3042bbe5cba8505428908c8eaf:d98eea3466c75365e7aa819f5cc13aa6:0dc4c109fff9e02dedae934229f09d51:1f35686cb0a38cf007b30e072e907303"
            data_hash_key_timestamp 1568406577
            frame {
                value 0
                expression "F"
            }
            deformation_type 0
            deform_frame_count 1
            base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
            anim_range 0.0 0.0
            deform_range 0.0 0.0
        }
        GeometryAbcMesh {
            name "veh_bargeSm_A_crates001_PLSShape"
            #version 0.98
            #created 1568409806
            #modified 1568409806
            parent "project://no_deps/veh_bargeSm_A/veh_bargeSm_A"
            inherit_transform yes
            uv_maps "uv"
            uv_maps_loaded yes
            shading_groups "default"
            materials "project://default/material"
            clip_maps ""
            displacements ""
            sg_shading_variables ""
            visibles yes
            filename_sys "/assets/asset_veh_barge_sm_A/geo/veh_bargeSm_A.abc"
            object_name "/veh_bargeSm_A/veh_bargeSm_A_crates001_PLS/veh_bargeSm_A_crates001_PLSShape"
            base_data_hash_key "ABC::877836862f7de683cb79cb4592479073:c517a39d0c19fa8713d013dd784bec3b:08a14fc7ece702ca9c249379bd77a371:3a89ffbf978730ac91bf3bc2f85c77cd"
            properties_hash_key "ABC:877836862f7de683cb79cb4592479073:c517a39d0c19fa8713d013dd784bec3b:9b3c26f8c3cfc940251594ed1b296ac0:08a14fc7ece702ca9c249379bd77a371:88b2980299f529fad35fcfce2198f70e:3a89ffbf978730ac91bf3bc2f85c77cd"
            data_hash_key_timestamp 1568406577
            frame {
                value 0
                expression "F"
            }
            deformation_type 0
            deform_frame_count 1
            base_matrix 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1 0.0 0.0 0.0 0.0 1
            anim_range 0.0 0.0
            deform_range 0.0 0.0
        }
    }
}


Note how it has converted ALL of the references (including references in the sub-project) into local entities.
bvz
 
Posts: 51
Joined: Tue Dec 03, 2013 9:55 am

Re: export_context_as_project_with_dependencies bug?

Unread postby abarriot » Wed Sep 18, 2019 1:05 pm

Hello,

After some tests on our side, we can confirm that it's a bug. We have created an ID(#10174).
Sorry for the inconvenience.

Regards,
-Anais
Anaïs Barriot
Isotropix
Clarisse QA
User avatar
abarriot
 
Posts: 56
Joined: Mon Jun 22, 2015 8:48 am


Return to Scripting