Placing scripts for mantra python filter
1083 3 0- haggi krey
- Member
- 53 posts
- Joined: 7月 2013
- Offline
- graham
- Member
- 1902 posts
- Joined: 11月 2006
- Offline
I don't think it will work without an absolute path as it's essentially read/executed like a script and not imported in the standard Python way. Depending on how you're formulating your mantra command you could try putting it somewhere on the HOUDINI_PATH and then finding the script as a relative path via hou.findFile:
pyfilter_path = hou.findFile("pyfilter/ht-pyfilter.py") mantra_command = "mantra -P {}".format(pyfilter_path)
Graham Thompson, Technical Artist @ Rockstar Games
- haggi krey
- Member
- 53 posts
- Joined: 7月 2013
- Offline
- graham
- Member
- 1902 posts
- Joined: 11月 2006
- Offline
-
- Quick Links