Hi all,
I’m Darshan Hiranandani, encountering an issue while trying to use the create_filesystem_structure()
function in SGTK to create and register directories for an asset. Here’s a simplified version of the code I’m working with:
mgr = sgtk.bootstrap.ToolkitManager()
mgr.base_configuration = DESCRIPTOR_STRING
mgr.plugin_id = “basic.testplugin”
engine = mgr.bootstrap_engine(“tk-shell”)
tk = engine.sgtk
sg_asset = tk.shotgun.find_one(“Asset”, [[“id”, “is”, 100]])
tk.create_filesystem_structure(“Asset”, sg_asset[“id”])
However, I keep running into a stack trace when trying to run this code in different Python environments. Has anyone else faced a similar issue or have any suggestions on what might be going wrong?
Thanks in advance for your help!
Regards
Darshan Hiranandani