I just imported some programs from my cobot to my polyscope simulator, and I ran the program twice.
I need the script file to get easy access to the poses so I can use them, but in the folder there is no script file I can access. I thought this file would kind of appear as soon as the program was run once, yet after restarting and running again it still has not appeared. any insights?
already figured it out. You have to alter the program and save it again. Only then will it create the script. not if you just run the URP that was made on another device.
Thanks for your sharing, anyway but
Just to make it clear:
I can create a new some_name.urp. Then I can open the some_name.script it generates in script-node. I can see that. Then I can save the script-node in another_name.script file.
Can I delete all nodes and just put a single script-node with the another_name.script in it? Save it as whatever_name.urp? or?
Can I create a new new_name.urp and put a single script-node with the same another_name.script in it? will that run?
Cuz I got some “Duplicate label error”
You can’t save a .script file as a .urp I don’t believe.
You likely also can’t just insert a complete program’s script as a script node in another program and hit run. The script that is generated also contains information from the Installation at the top. Any variables that were made in the installation may now be double defined, which it won’t like. You may be able to manually edit the script first and remove anything that is duplicate and then run it from the script node.
Correct - I can’t save an .URP from .script. I didn’t say that anyway. I just said to create new .urp (just by saveing a new program and then open the .script file it generates after play). That’s that.
I did open the .script and cleared all varialble setups, and comments and threads… and left ONLY the BODY of the generated function (clearing all the comments). That worked.
I’m only mentioning that to clear any doubts for other users. Using the generated .script as a template is fine for new script-node.
Thank you for sharing!
Hi! The script file with poses doesn’t get created automatically just by running the program in the simulator. You usually need to export or save it manually from Polyscope. Check the export options or look for a way to save the poses separately. Hope that helps!