Is there a way, using Python script, to know which element of the cable a grabbing tool is attached to during simulation?
I tried to check in the universe constraints but it seems that the grabbing tool is not considered as a constraint.
Thanks in advance for your answers.
Best Answer
V
Vortex Studio Support
said
5 months ago
Hi Ornella,
The Grabbing Tool part will merge with the cable part.
If you want to know which part of the cable is grabbed you can look at the merge root for the grabbed part.
Note that this is available at the VxCore level. You will need to retrieve the VxPart and then call the function to retrieve the merge root (C++: getMergeRoot() , Python: mergeRoot() ) to have your cable part.
From the C++ API there is lots of function to navigate through the merged parts but with the Python level there is only the mergeRoot() function available
Hope this help.
Remi
1 Comment
Vortex Studio Support
said
5 months ago
Answer
Hi Ornella,
The Grabbing Tool part will merge with the cable part.
If you want to know which part of the cable is grabbed you can look at the merge root for the grabbed part.
Note that this is available at the VxCore level. You will need to retrieve the VxPart and then call the function to retrieve the merge root (C++: getMergeRoot() , Python: mergeRoot() ) to have your cable part.
From the C++ API there is lots of function to navigate through the merged parts but with the Python level there is only the mergeRoot() function available
Ornella Tortorici
Hi,
Is there a way, using Python script, to know which element of the cable a grabbing tool is attached to during simulation?
I tried to check in the universe constraints but it seems that the grabbing tool is not considered as a constraint.
Thanks in advance for your answers.
Hi Ornella,
The Grabbing Tool part will merge with the cable part.
If you want to know which part of the cable is grabbed you can look at the merge root for the grabbed part.
Note that this is available at the VxCore level. You will need to retrieve the VxPart and then call the function to retrieve the merge root (C++: getMergeRoot() , Python: mergeRoot() ) to have your cable part.
From the C++ API there is lots of function to navigate through the merged parts but with the Python level there is only the mergeRoot() function available
Hope this help.
Remi
Vortex Studio Support
Hi Ornella,
The Grabbing Tool part will merge with the cable part.
If you want to know which part of the cable is grabbed you can look at the merge root for the grabbed part.
Note that this is available at the VxCore level. You will need to retrieve the VxPart and then call the function to retrieve the merge root (C++: getMergeRoot() , Python: mergeRoot() ) to have your cable part.
From the C++ API there is lots of function to navigate through the merged parts but with the Python level there is only the mergeRoot() function available
Hope this help.
Remi
-
Can’t open the samples
-
How do you verify an object’s coordinates?
-
Vortex Studio 2017a Launch Webinar Discussion
-
Vortex Studio 2017 hardware requirements
-
Maritime Environment and Hydrodynamics Simulation Webinar Discussion
-
STEP support?
-
Tutorial forklift tipping over
-
Logitech Joystick Compatibility
-
Determining power loss in drive train
-
Hole Geometries Through Editor
See all 128 topics