KillianDS Posted January 19, 2023 Share Posted January 19, 2023 Hello I have a problem attribut point which makes me an error Error Unable to evaluate expression (Invalid number of arguments for function (/obj/LOD_Tool/rop_fbx3/sopoutput)). Error FbxExporter::Initialize() failed. Error returned: File not created http://image.noelshack.com/fichiers/2023/03/4/1674158132-houdini-abp69t5i93.png Here is what I put in my outputFile: `chs("../File_export_LOD")``point(0,"Mesh_Name_9",0)`_LOD_`detail("../foreach_begin1_metadata1/","iteration",0)+1` All works correctly except `point(0, "Mesh_Name_9",0)` t puts me in error, whereas when I put a attribwrangle2 with ca as code: string debug = point(0, "Mesh_Name_9",0); printf("Check value : %f\n", debug); It's a good way to return a string Check value : teapot So it gets the right value but I don't understand why when I add it in my expression that works `chs("../File_export_LOD")`_LOD_`detail("../foreach_begin1_metadata1/","iteration",0)+1` So that gives me this: `chs("../File_export_LOD")``point(0,"Mesh_Name_9",0)`_LOD_`detail("../foreach_begin1_metadata1/","iteration",0)+1` And now it doesn't work anymore how I can fix it I don't really understand what I'm doing wrong. Quote Link to comment Share on other sites More sharing options...
Fenolis Posted January 20, 2023 Share Posted January 20, 2023 when using string values in HScript expressions, make sure you are using the string version of the channel calls: points(), prims(), details() etc. the "s" matters in these cases. Quote Link to comment Share on other sites More sharing options...
KillianDS Posted January 20, 2023 Author Share Posted January 20, 2023 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.