Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / any one know how to access a primitives global component positions?
  RSS 2.0 ATOM  
2 pages: 1.2 first

any one know how to access a primitives global component positions?
Rate this thread
 
30195
 
Permlink of this thread  
avatar
  • CiaranM
  • Posted: 29 April 2009 11:52 PM

No, PositionArray is always in local space. But, now you have a bunch of vectors in world space, you can convert then into object B’s local space and use them to set its positionArray. Just go in reverse and run your vectors back through XSIMath.MapWorldPositionToObjectSpace, this time pointing to object B’s transform. Use these vectors to set B’s positionArray.
Or, even easier, just cut out the middle man and use XSIMath.MapObjectPositionToObjectSpace to convert vectors from the local space of object A to that of object B.



Replies: 0
avatar
  • QuentinB
  • Posted: 30 April 2009 08:52 AM

I’m so confused now lol, sorry I’m still rather new to manipulating positions in scripting. I converted the objects point positions to world space which resulted in the vectors you are referring to. But I’m not sure how to take that new information and use it to access each points new position in a for loop. before I was using the position array to do that, but now I’m not certain about how to take the converted position information and use that in the for loop instead. ^_^ could you clarify that for me?



Falun Dafa
A meditative practice for the mind and body
http://www.falundafa.org

Replies: 0
avatar
  • QuentinB
  • Posted: 30 April 2009 07:33 PM

Oy, sorry guys, I got it worked out. Turns out I didnt have to convert the position afterall, I just have to freeze the transforms on the destination object. ^_^ thanks for all of your help !



Falun Dafa
A meditative practice for the mind and body
http://www.falundafa.org

Replies: 0
2 pages: 1.2 first