Import values create keys script
Hi All,
Was wondering if anyone had any ideas on this.
I have a script that seems to be almost working.
This is to animate a box's scale so it appears to go left and right of zero.
If you look at the script listener it appears as though the values are being
inputted correctly but I am losing my negative sign.
It gives me the absolute value or positive value of the number.
I'm just not sure what I have done wrong.
I have attached all pertinent files.
thanks for looking.
Lowell
Attachment | Size |
---|---|
test.zip | 21.54 KB |
Comments
Negative values for scale and
Negative values for scale and volume/size is a wrong concept even in 3d software. Is here negative speed for example :P never mind... You said, you can do negative scale by hand, but did you check whats happened when? See the screenshot. I change only Z to -8 but... as you can see - get value test show that X and Y also are negative :) For example (even weird) this would works:
"$.scale *= -1"
and result scale would be [-1,-1,-1], and it somehow works 'cause made all 3 dimensions negative. I hope this pointer you to the right direction ;-)my recent MAXScripts RSS (archive here)
Anubis, So what your telling
Anubis,
So what your telling me is I can put negative values in by hand and not through the script? It seems odd that it behaves this way.
Any suggestions as to how you might tackle the problem.
Manipulate what properties of what kind of geometry?
thanks for looking
Lowell
ps here's to getting to the afterlife one day!
there is a not real negative
there is a not real negative scaling.
my recent MAXScripts RSS (archive here)