changes to python API in houdini 18?

   2022   4   4
User Avatar
Member
143 posts
Joined: 9月 2017
Offline
Hi,

I'm trying to update a drag-and-drop python script I made for importing fbx and obj nodes in Houdini 17, that stopped working after I upgraded to Houdini 18.

So far, I've found, that part of the problem is, that the basic input seems to have changed.

Previously, when I executed the code:
def dropAccept(filelist):

	for file in filelist:
		print (str(file))
I got a string, that represented the file path.
Now, the path string has the prefix: file:///

Is there a reason for this? Should I just remove the first 8 characters of the string, to get the file node to work, or is there a smarter way to do this?
Thanks in advance.

Cheers,
Ivan
Edited by ivanmalek - 2020年2月14日 10:02:15
User Avatar
Member
196 posts
Joined: 1月 2013
Offline
Yes, the same question interests. The drag and drop script that I created in the script folder as externaldragdrop.py stopped working.
User Avatar
Member
14 posts
Joined:
Offline
I have reported this a while ago as a bug and its in the system (H17.5 also allowed for multiple files to be dropped, whereas its limited to 1 in H18)
Oliver Hotz
#creator of ODShelfTools for Houdini: https://origamidigital.com/cart/index.php?route=product/category&path=59_63 [origamidigital.com]
User Avatar
Member
1 posts
Joined: 7月 2017
Offline
It definitely needs to be fixed in H18
User Avatar
Member
34 posts
Joined: 7月 2015
Offline
I just realized we are limited to 1 in H18, any workaround?
  • Quick Links