Hello. I’m trying to make a python command to import a rag file.
After this command, a window opens where you can select a rag file. But I want the file to be selected automatically at the specified path
from ragdoll import interactive as ri
Please could you suggest how to import my_custom_physics.rag so that the window doesn’t open.
Hi @eumelnikov, thanks for re-posting here from the Discord chat, and welcome to the forums!
To import via Python, you can use the
from ragdoll import api
fname = r"D:\my_custom_physics.rag"
You can pass in optional parameters the are usually accessed via the Import dialog via the
"searchAndReplace": ["", ""],
Hope it helps!
Of course you helped. Thanks a lot!