Py4D: compare vectors
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2011 at 06:52, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :---------
Comparing vectors does not work.vec = c4d.Vector(255) if vec >= c4d.Vector(100) : gui.MessageDialog("Vector is bigger than Vector(100)")
And by the way, how are they compared, if they would be compared ?
Is the expression True if only one value is bigger or must all values be bigger than 100 ?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/03/2011 at 09:06, xxxxxxxx wrote:
This is not a bug, the operators <, >, <=, >= were removed some versions ago.
To check which vector is greater, compare the length manually. v1.GetLength()<v2.GetLength() -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/03/2011 at 13:31, xxxxxxxx wrote:
Oh, but would be pretty useful.
Thanks,Niklas