Open mattschwarzAnim opened 1 year ago
The PICKER_DATA node which you can see in the pictures doesn´t return any error. However, the picker window is empty as it returns no data:
PICKER_DATA
The problem seems to be two different issues:
path.exists
As a quick test I used the protected method to add the conversion: if not os.path.exists(file_handlers._convert_path_token(file_path)):
if not os.path.exists(file_handlers._convert_path_token(file_path)):
@convert_path_token
file_path
When I pass it as a kwarg it returns the expected result return file_handlers.read_data_file(file_path=file_path)
return file_handlers.read_data_file(file_path=file_path)
Hi @mattschwarzAnim Thanks for reporting this. I have added to the current WIP project and I will check it ASAP :)
The![image](https://user-images.githubusercontent.com/6480036/215102606-92decfb9-c3e1-493e-8e01-c21620f1d06e.png)
PICKER_DATA
node which you can see in the pictures doesn´t return any error. However, the picker window is empty as it returns no data:The problem seems to be two different issues:
path.exists
check. https://github.com/mgear-dev/mgear4/blob/f6046994b586395c067a0dd3c6c13d31a240123f/release/scripts/mgear/anim_picker/picker_node.py#L264As a quick test I used the protected method to add the conversion:
if not os.path.exists(file_handlers._convert_path_token(file_path)):
@convert_path_token
decorator does not seems to work if thefile_path
variable is passed as a arg. https://github.com/mgear-dev/mgear4/blob/f6046994b586395c067a0dd3c6c13d31a240123f/release/scripts/mgear/anim_picker/picker_node.py#L267When I pass it as a kwarg it returns the expected result
return file_handlers.read_data_file(file_path=file_path)