Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

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

nggarnaud
Advocate Advocate
540 Views
3 Replies
Message 1 of 4

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

Reply
Reply
0 Likes
541 Views
3 Replies
Replies (3)
Message 2 of 4

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
>
Reply
Reply
1 Like
Message 3 of 4

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.

Reply
Reply
0 Likes
Message 4 of 4

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
Reply
Reply
1 Like