MAXscript question

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2003   #1
MAXscript question

why is it when I run this script...

macroScript MoveY
category:"My scripts"
Buttontext:"MoveY"
tooltip:"MoveY"
(
move $.selectedverts [0,5,0]
)

...the vertices I had selected gets deselected? Has it something to do with it being a macroscript?
Thanks
__________________
PolyBoost Tools for 3ds max
 
Old 11 November 2003   #2
I run the script, then after a while this pops up in the listner:
$.EditablePoly.SetSelection #Vertex #{}
wich deselecs all verts. What do I need to add to keep them selected?

I also tried to do this:

macroScript MoveY
category:"My scripts"
(
move $.selectedverts [0,5,0]
v=polyop.getvertselection $
polyop.setvertselection $ v
)
But I get the same result after the macro is finished...please help me out here...
__________________
PolyBoost Tools for 3ds max
 
Old 11 November 2003   #3
Hmm...the reason this happened seems to be that I had it binded to the up arrow key. It doesn't happen with other keys than the arrow keys, strange.
I'm trying to do something like I described in my script suggestions thread in the MAXscript forum so it would be natural to have the shortcuts on the arrow keys. But I guess other keys will have to do, unless somebody can offer me a fix for it...
__________________
PolyBoost Tools for 3ds max
 
Old 11 November 2003   #4
You should post this kind of question to the Maxscript forum

I can't reproduce the problem; the verts remain selected for me after running the macroscript. What version of Max are you using?

***I just caught that last message you posted. I'll see if I can reproduce that behavior. That doesn't seem normal...***

RH
__________________
Got Maxscript?
RHTools
 
Old 11 November 2003   #5
Using Max5.1 - I just ran your macro, and assigned to the Up Arrow key.

Made a teapot, convert to Epoly, selected some points, hit the arrow key.

The points moved and stayed selected. Perhaps you have something else assigned to the Up Arrow key as well, or some other key shortcut conflict?

thorn
__________________
neverwake.com
 
Old 11 November 2003   #6
Yeah, I had the same results (verts stayed selected properly), I just ran out of time earlier to post. I don't think it would be a key binding conflict, since Max is smart enough not to allow that. It's a very curious problem

RH
__________________
Got Maxscript?
RHTools
 
Old 11 November 2003   #7
Ok, that's wierd. Might have something to do with my configuration of MAX, not sure. Anyway the sript is ready now, I've posted it in the MAX forum:
http://www.cgtalk.com/showthread.php?s=&threadid=102350
Try it uot and let me know what you think. It's only the second script I've made, but I think it does the job. The way the script works now you can't type in any unit amount to move the selection. It would be good if one could do that, but this was the best I could come up with right now. Thanks for the replys.
__________________
PolyBoost Tools for 3ds max
 
Old 01 January 2006   #8
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 08:58 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.