CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 07-08-2011, 02:17 PM   #1
Benixel
3DPixel
 
Benixel's Avatar
portfolio
benyamin razian
CG designer-motionfx
Mashhad, Iran
 
Join Date: Jan 2005
Posts: 99
reset button

hi guys,
i created reset button , and now i wanna when pressed this button my object hole back to [0] position! what type of order i can used.?

Code:
ca=attributes fak ( rollout R1 "reset" ( button reset "ResetPosition" ) on resetposion pressed do ( ? ) ) custAttributes.add $.modifiers[1] ca
__________________
My blog

Last edited by Benixel : 07-08-2011 at 02:23 PM.
 
Old 07-09-2011, 07:18 AM   #2
MerlinEl
Frequenter
 
MerlinEl's Avatar
portfolio
Rene Baca
3D Artist
Vatra Games
Brno, Czech Republic
 
Join Date: Nov 2006
Posts: 294
Hi


Code:
ca=attributes fak ( fn resetPos obj = if obj != undefined do obj.pos = [0,0,0] rollout R1 "reset" ( button btnr "ResetPosition" on btnr pressed do resetPos selection[1] ) ) em = EmptyModifier() addModifier $ em custAttributes.add $.modifiers[1] ca
 
Old 07-09-2011, 09:30 AM   #3
Benixel
3DPixel
 
Benixel's Avatar
portfolio
benyamin razian
CG designer-motionfx
Mashhad, Iran
 
Join Date: Jan 2005
Posts: 99
Thumbs up tnx

wow tnx MerlinEl, it really work.
__________________
My blog

Last edited by Benixel : 07-09-2011 at 09:32 AM.
 
Old 07-09-2011, 09:30 AM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:04 PM.


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