RoboDK Forum
Load a 3D mesh (obj) with python API——革命制度党ntable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+ - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: Load a 3D mesh (obj) with python API (/Thread-Load-a-3D-mesh-obj-with-python-API)



Load a 3D mesh (obj) with python API-Tomlogan501-06-21-2022

Hi,
I didn't find in the examples or scripts a way to load a simple 3D mesh as obj in the scene.
It is on a fixed path.
I would like also to change the scale just after load it.

Regards,
Thomas.


RE: Load a 3D mesh (obj) with python API-Sam-06-21-2022

Hi Thomas,

You can load a 3D mesh by dragging it to the station or with RDK.AddFile for the API. Most file formats are supported.
You can also add it with AddShape if you have the vertices in your code instead.

You can scale the imported object afterwards, see this video:https://www.youtube.com/watch?v=MnNHetg3VpI


RE: Load a 3D mesh (obj) with python API-Tomlogan501-06-21-2022

Thanks, I saw the AddShape method, not the AddFile.

Regards,
Thomas