Reload .tox on Start not working

Hello!

I have seen that when loading a TOX from a Base COMP putting a path on ‘External .tox’ parameter doesn’t load the tox correctly on the project startup. This happens specifically when on the path Im using a global OP shortcut, for instance something like 'op.GlobalOPShortcut.par.Rootpath + ‘test_tox.tox’. Once the project has opened, if I click on Re-Init button it loads it correctly. Here I attach a test tox and a simple project where the bug happens. In the project, there are two ways to load the tox, by using the full path as a string (works well) and by using the global op shorcut (doesnt work) (see picture).

load_tox_bug

Im on Windows and using the latest build 2022.28040.

Thanks,

Joan
test_open_tox.zip (4.4 KB)

Hey @Sandufi

I can reproduce the issue and logged it for a developer to take a look.

Best,
Michel

Hey @Sandufi

Could you maybe add a parent shortcut to the “base_test” COMP ?

I did this with a parent shortcut “test” and replaced the expression to be parent.test.par.Rootpath.eval() and it seems to work.

Best,
Michel

1 Like

Hey @JetXS your solution works, also the classic parent().par.Rootpath. However, you are depending on the parent structure, which is something I don’t want for the project Im working on, that’s why I was trying to use the global OP shortcut. Anyways, thanks for your help and Im glad you could reproduce the bug :slight_smile:

Joan