Hello everyone,
I would like to know if there’s a command to get the expressions (creation, before and after dynamic) of a particle system as a string, so I can modify it and put it back by using “dynExpression”.
Long story and my scenario.
The fact is I referenced a maya file by python.
In that file there are particles that read values of two ramps thanks to their expressions.
To read the ramps I use this:
float $radius[] = `colorAtPoint -output RGB -u .5 -v (blahblah) "ramp1"`;
My scenario is I need to change that “ramp1” according its real name when the file is referenced.
I have everything I need (I can reference the file, I can have the name of the texture when the file is referenced…), I miss only how to read all the expressions by python, search that “ramp1” and changing it with something like “fileRef1|ramp1”.
Thank you very much.