import a javascripts/ java code in a python script/ print point cloud data

nggarnaud
Advocate

import a javascripts/ java code in a python script/ print point cloud data

nggarnaud
Advocate
Advocate

Dear all

 

Happy Saturday. Do you know a way to call/import a JavaScripts/ java code from/in python script?

Secondly how to write a simple point cloud Camera  python/c++/javascript file and print the values of the camera ?

 

Thanks

 

Cheers

 

Gil

0 Likes
Reply
501 Views
3 Replies
Replies (3)

marshaltu
Autodesk
Autodesk

Hello,

 

I don't have experiences to call Javascript code in Python script. But I found the answer from the page. Please give a try and have a good luck.

 

https://stackoverflow.com/questions/10136319/executing-javascript-from-python

 

Could you please explain a little about your second question? What's mean "point cloud camera"?

 

Thanks,

Marshal

 

 



Marshal Tu
Fusion Developer
>
1 Like

nggarnaud
Advocate
Advocate

Hello Marshatu

 

This a link to a point cloud camera video : Raw Depth Data

In my project i am trying to do the same thing using a c code (instead of a JavaScript) and a cheap camera that could replace kinect2 camera. but hte most important thing is a point cloud c code that i could use to implement a Objectarx_point cloud command. And then usein autocad 2015 for mac os x 10.11.6

 

Thanks a lot, i will check the link.

0 Likes

ekinsb
Alumni
Alumni

Fusion 360 doesn't currently support any point cloud capabilities.  In the future you'll be able to draw points using low-level graphics but I'm still not sure that would be the best solution for a point cloud.  Of course the Fusion 360 API doesn't have any support for talking to a Kinect or other devices.  You'll need to use the libraries associated with those devices to interact with them.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
1 Like