I need to model a shuttle conveyor that will be controlled by a PLC.
How do I manipulate the ports so that the shuttle conveyor will be connected to and receive parts from a conveyor one end, and then connect and dispense parts to another conveyor on the other end of the shuttle?
I have attempted to read and modify the python script that comes with the built in VC shuttle conveyor, but was never able to get it to work. I am pretty lost on where to go next.
Is there anyway to control conveyor port connections without PnP and regardless of their position within the 3D space?
Thank you very much, this seems promising. I should be able to try this soon, but I do have one question.
I know comp generally comes from the getcomponent method, but how do you access the other object? (conveyor2 in your example)
Thank you Unnahi and anhu, you’ve both been a big help. I have one more question if it’s not too much.
I was testing that code and realized if the conveyors are not aligned, the part will follow the second conveyors path but not move position to the second conveyor, as you can see here:
When I was messing around with ports before, I did get parts to “appear” on another conveyor that was not connected, but perhaps that was a bug/ something I shouldn’t be doing anyway.