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® MotionBuilder® / Python / FBVector3d(x,y,z) question.
  RSS 2.0 ATOM  

FBVector3d(x,y,z) question.
Rate this thread
 
39779
 
Permlink of this thread  
avatar
  • Ben Fator
  • Posted: 14 February 2010 06:54 PM
  • Location: Port Huron, MI
  • Total Posts: 9
  • Joined: 12 April 2008 08:30 PM

Greetings,

Simple question hopefully.  In a FBVector3d(x,y,z) I want to get the y value at a certian point and retain it in a variable.

I’ve been looking for a function to pull out a specific X,Y, or Z value rather full 3 point vector. 

Could someone point me in the right direction for this? 

Cheers



Finish project, move, finish project, move.

Replies: 0
avatar
  • _stev_
  • Posted: 15 February 2010 05:41 AM

You use the same syntax as python lists or tuples:

lVector FBVector3d(1.83.19.5)

lPosY 
lVector[1]

print lPosY

The same goes for accessing elements in a FBMatrix.

Stev



Replies: 0
avatar
  • Ben Fator
  • Posted: 15 February 2010 06:21 PM

Awesome

I can’t thank you enough



Finish project, move, finish project, move.

Replies: 0