Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(36 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Why I get false in the end?
show user profile  Hua*MuLan~
what i run in my listener:
($.transform.row2 == [0,0,1])
false--result why is false
Every day is a new day

read 872 times
3/10/2009 1:00:44 PM (last edit: 3/10/2009 1:00:44 PM)
show user profile  Garp
edit: read too fast again... sorry

edit2: I get this:
(matrix3 [1,0,0] [0,1,0] [0,0,1] [11.0644,-34.9758,-11.7837])
$.transform.row2 == [0,1,0]
I don't know why it doesn't work for you. (?)

read 857 times
3/10/2009 1:26:43 PM (last edit: 3/10/2009 1:37:05 PM)
show user profile  Dub.
thats odd - it works for me:

($.transform.row2 == [0,1,0])

read 840 times
3/10/2009 1:36:51 PM (last edit: 3/10/2009 1:36:51 PM)
show user profile  Hua*MuLan~
Well , I rotate my model with snap tools.My model's Y_axis is pointing straight up.
Every day is a new day

read 830 times
3/10/2009 1:43:49 PM (last edit: 3/10/2009 1:43:49 PM)
show user profile  advance-software
Maybe try a reset, drop down a cube at the origin, then inspect that - don't rotate anything - keep it simple to start with & see if you get what you expect.
read 826 times
3/10/2009 1:46:13 PM (last edit: 3/10/2009 1:47:19 PM)
show user profile  Hua*MuLan~
[0,0,1] was also good for me , but it's extreme odd,when I rotate it.
and I need ratate it ,for this my new way to check if Y_axis is pointing straight up.
I'd like someone try to rotate it use snap tools to make sure the Y_axis is pointing straight up.and
see if it's works well in your machine
Every day is a new day

read 812 times
3/10/2009 1:56:16 PM (last edit: 3/10/2009 1:56:16 PM)
show user profile  Dub.
just take the dot product between the actual up axis and the object up axis. if it's less than a threshold then you're good.

It's probably a precision thing.

read 806 times
3/10/2009 1:59:50 PM (last edit: 3/10/2009 1:59:50 PM)
show user profile  Hua*MuLan~
You mean internally that what I get is not [0,0,1] from the command $.transform.row2 but something like [0,0,0.00000001]? Am I right?
Every day is a new day

read 803 times
3/10/2009 2:05:39 PM (last edit: 3/10/2009 2:07:42 PM)
show user profile  Dub.

It's probably more like 0.00001 though.

Try this:

((dot [0,1,0] $.transform.row2) > 0.9999)

read 800 times
3/10/2009 2:09:04 PM (last edit: 3/10/2009 2:11:21 PM)
show user profile  Hua*MuLan~
I think it should be:
((1 - dot [0,1,0] $.transform.row2) > 0.9999)
Every day is a new day

read 787 times
3/10/2009 2:21:28 PM (last edit: 3/10/2009 2:26:16 PM)
show user profile  Dub.
hmmm that doesn't work for me.

The dot product of two vectors pointing the same way is 1.0

read 781 times
3/10/2009 2:26:52 PM (last edit: 3/10/2009 2:26:52 PM)
show user profile  Hua*MuLan~
really thanx , all of your guys .
Every day is a new day

read 774 times
3/10/2009 2:34:57 PM (last edit: 3/10/2009 2:34:57 PM)
#Maxforums IRC
Open chat window