[Closed] python – max2014
hej Guys,
I would love to take advantage the python bridge new in 2014 but I am lost in the field of classes and objects. Actually I am sort of clean in dotnet but this one seems to be a bit different. Could somebody point me to the right direction please?
For start I only want to getVertex of those nodes inside max. (let assume for now they are all teapots.)
import MaxPlus
for node in MaxPlus.Core.GetRootNode().Children:
vcount = node.VertexCount
for k in range(1,vcount):
#Now how to get the point3 vertexcoords here?
#GetVertex() will return either global name not defined or int cannot be called
Thank You
I cant find the reference from Inode to mesh, triobject…
I must have missed it, anybody?
BaseObject should work, something like
import MaxPlus
for node in MaxPlus.Core.GetRootNode().Children:
base = node.BaseObject
for v in xrange(0, node.VertexCount):
print base.GetPoint(v)
I got it guys, its the short namespace , that fooled me. I thought the whole namespace I have to define what I have seen in the help file (the flow chart looking thing)
LOL
Could you post your solution?
It’s nice for others to see the exact solution to your question since it’s solved.