I’m working on a python command script and i’m trying to use the vcCollisionDetector
I want to automatically add components (robot + gripper) to nodelistA(B) when a button is pressed based on the current lay-out in visual components. The script need to work with different lay-outs.
Can anyone help me with this problem.
Did you find any code examples in reference guide, for example vcVolumeDetector?
When the button is pressed, it should trigger an OnChanged event. From there, check for the needed components in the 3D world using vcApplication.Components or find them individually, and then add the root nodes of the components to the node list you want to use. I don’t remember if you need to get a node list first, update it, and then assign it back. Check vcSweptVolume for an example as well.