python to display xyz points

python to display xyz points

ssai99G56
Observer Observer
1,319 Views
2 Replies
Message 1 of 3

python to display xyz points

ssai99G56
Observer
Observer

I have some xyz points (3D points), and I want to plot them in the MAYA console using python. Does anyone has done it before?

0 Likes
Accepted solutions (1)
1,320 Views
2 Replies
Replies (2)
Message 2 of 3

chaneyx
Advocate
Advocate
Accepted solution

I often use expressions with particles when I want to do a quick graph for of some math function. 

You can create a fixed ( or variable ) number of particles. And then set expressions on the position of the particles. 

 

 

OR if you are reading from a file , you can run a script in the script editor that reads your values and creates a  MEL command like this : 

particle -p 0 0 0 -p 3 5 6 -p 5 6 7 -p 9 9 9;

Message 3 of 3

ssai99G56
Observer
Observer

Thanks a lot. I am able solve it using python using your reference.

0 Likes