reset button

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
  07 July 2011
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.?

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 July 2011 at 02:23 PM.
 
  07 July 2011
Hi



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
 
  07 July 2011
Thumbs up tnx

wow tnx MerlinEl, it really work.
__________________
My blog

Last edited by Benixel : 07 July 2011 at 09:32 AM.
 
  07 July 2011
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



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


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