Hi Yves, You know, I think the easiest way to achieve what you described, is to write your C++ scripts with input arguments.
Other than that, maybe you can incorporate a third-party JSON parser such as RapidJSON to parse custom JSON files in your scripts, if it is necessary. Thank you, Ruochun On Sunday, June 19, 2022 at 3:15:29 AM UTC-5 [email protected] wrote: > Hello, > > I am using Chrono::GPU and would like to make the simulation more > user-friendly by not requiring the user to recompile the code every time a > parameter is needed to be changed. > > The JSON file is very handy, but it is rather not flexible as the number > and names of the parameters are fixed. > > Let's say that for instance, the user wants to change regularly the part > the '.obj' file to be loaded by the routine, or that I want the to scale > this object with a parameter named "scale", etc. How would I do that? Is > there any feature allowing for it? > > Thank you, > Yves > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/1e42fa18-3aeb-42bc-9784-58f3821e6b6cn%40googlegroups.com.
