Seperating the Vector Values to use elsewhere.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/03/2011 at 02:59, xxxxxxxx wrote:
Hello everybody,
How can I seperate the 3 vector Values to use elsewhere.e.g.
boundingbox = activeobject.GetRad() print boundingbox # output: Vector(100.836, 35, 30)
I want to have the min and the Max Values as seperated Variables
e.g.
a = 100.836 b = 35 c = 30
thanks in advance
mogh -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/03/2011 at 04:09, xxxxxxxx wrote:
Look at this example, I think it will answer more than just your question.
def SeprVec(vec) : return vec.x, vec.y, vec.z def main() : import c4d vec = c4d.Vector(100,30,25) a, b, c = SeprVec(vec)
cheers, nux
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/03/2011 at 22:25, xxxxxxxx wrote:
thanks nux95
i got it working ...