>: CG Forums on 3dtotal - The best forums for CG artists :.
threedy forums home
 


top-table-gradient
Go Back   3DTotal Forums > Archives > Archives > Scripting & coding
bottom-table-gradient

Reply
 
Thread Tools Display Modes
Old 22-09-2005, 04:23 PM   #1
ibrahim_gabr
Registered User
 
ibrahim_gabr's Avatar
 
Join Date: May 2005
Location: Earth
Posts: 746
Thanks: 0
Thanked 0 Times in 0 Posts
Awards Showcase
Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! 
Total Awards: 1
Scripting with Max Script

On the show reel of adam scott that was announced yesterday I have a question Did adam scott use scripting on his rigging test on the his models.

Another question is how to make a script real time ( in other words it is active on every frame and on moving the helpers it executes the code) I use scripts in the paramater controls and add a position or rotation script but it does nt work except when animating.....
ibrahim_gabr is offline   Reply With Quote
Old 23-09-2005, 09:20 PM   #2
ibrahim_gabr
Registered User
 
ibrahim_gabr's Avatar
 
Join Date: May 2005
Location: Earth
Posts: 746
Thanks: 0
Thanked 0 Times in 0 Posts
Awards Showcase
Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! 
Total Awards: 1
Hello guys of scripting and coding no body out there have any idea?!?!?!
ibrahim_gabr is offline   Reply With Quote
Old 24-09-2005, 11:21 AM   #3
ibrahim_gabr
Registered User
 
ibrahim_gabr's Avatar
 
Join Date: May 2005
Location: Earth
Posts: 746
Thanks: 0
Thanked 0 Times in 0 Posts
Awards Showcase
Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! 
Total Awards: 1
Hi guys I had 12 view and no body replies is it that hard or I am not things clear enough plz in both ways plz respond to know where is the error and thanks for the 12 views I really appreciate it
ibrahim_gabr is offline   Reply With Quote
Old 24-09-2005, 12:02 PM   #4
ibrahim_gabr
Registered User
 
ibrahim_gabr's Avatar
 
Join Date: May 2005
Location: Earth
Posts: 746
Thanks: 0
Thanked 0 Times in 0 Posts
Awards Showcase
Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! 
Total Awards: 1
I added more 2 views I am starting to feel optimistic and feeling that I will get a reply soon(not being surcastic or anything) I am really optimistic
ibrahim_gabr is offline   Reply With Quote
Old 26-09-2005, 01:24 AM   #5
ibrahim_gabr
Registered User
 
ibrahim_gabr's Avatar
 
Join Date: May 2005
Location: Earth
Posts: 746
Thanks: 0
Thanked 0 Times in 0 Posts
Awards Showcase
Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! 
Total Awards: 1
WOW 23 views till now I am impressed but plzzzzzz I neeeed replies
ibrahim_gabr is offline   Reply With Quote
Old 26-09-2005, 04:46 AM   #6
ibrahim_gabr
Registered User
 
ibrahim_gabr's Avatar
 
Join Date: May 2005
Location: Earth
Posts: 746
Thanks: 0
Thanked 0 Times in 0 Posts
Awards Showcase
Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! 
Total Awards: 1
What is wroong all I am getting is views may I know why??
ibrahim_gabr is offline   Reply With Quote
Old 04-10-2005, 04:55 AM   #7
Vandalite
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I've noticed that too. I posted a topic in this forum and watched as it timed out and vanished. I am at odd's end trying to find a forum where i can actually get help with maxscript.
Vandalite is offline   Reply With Quote
Old 04-10-2005, 06:13 AM   #8
DeadlyFreeze
Not a zombie.
 
DeadlyFreeze's Avatar
 
 
Join Date: Jan 2004
Location: P-town
Posts: 1,547
Thanks: 7
Thanked 32 Times in 20 Posts
Awards Showcase
The Ultimate 3DTotal Award!: Only available in Platinum, given to select few for incredible service to the community. - Issue reason: For throwing one hell of a good suggestion out there. You suggested the sculpting challenge, and we ran with it. The community loves it. Nice one! Threedy Top Poster - Silver: Contributing to the forums with 1,000+ posts - Issue reason: Target Reached Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target Reached! The Golden Grenade IV: For participating in the Dominance War IV and successfully finishing, well done soldier! - Issue reason: For participating in the Dominance War IV and successfully finishing, well done soldier! The Golden Grenade V: For participating in the Dominance War V and successfully finishing, well done soldier! - Issue reason:  Thumbs up!:  - Issue reason: your testicles Digital Painting - Silver: 2nd place in a speed painting challenge! - Issue reason: 2nd place in speed painting challenge Digital Painting - Silver: 2nd place in a speed painting challenge! - Issue reason: 2nd place in speed painting challenge ''Death Match'' Digital Painting - Silver: 2nd place in a speed painting challenge! - Issue reason: 2nd place in speed painting challenge Low Poly Game Art - Bronze: 3rd place in a low poly challenge! - Issue reason: 3rd place in Low POly Comp #22 Washed Up super Hero 
Total Awards: 10
CGTalk probably has the only max script forum that you might get answer from..

http://forums.cgsociety.org/forumdisplay.php?f=98

...atleast they gave me an answer, max script is just one of those things hardly anyone understands... kinda like the lume shaders.
__________________
DWV Work Thread... so many balls.

The mysterious guy behind you...
DeadlyFreeze is offline   Reply With Quote
Old 04-10-2005, 11:09 AM   #9
Vandalite
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the reference. Wish me luck solving this one
Vandalite is offline   Reply With Quote
Old 18-10-2005, 12:24 PM   #10
eeek
Registered User
 
eeek's Avatar
 
Join Date: Mar 2004
Location: UK & Canada
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
you use callbacks...

to make a script realtime you use callbacks, to active a variabe based off an action be it:

a selection change
a timeslider change
a viewport change
a mouse event change


you have to register the callback and unregister it (important!)

eg.

on test close do
(
unregisterviewportcallback monkey
destroydialog test
)


you can also use callback scripts to with:

callback.addscript

eek
__________________
Please leave a message after the beep...

Snr Technical Animator
Bioware Corp, Canada
eeek is offline   Reply With Quote
Old 18-10-2005, 12:36 PM   #11
ibrahim_gabr
Registered User
 
ibrahim_gabr's Avatar
 
Join Date: May 2005
Location: Earth
Posts: 746
Thanks: 0
Thanked 0 Times in 0 Posts
Awards Showcase
Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! 
Total Awards: 1
eek-3DT Thanks man I barlely lost hope for anyone to answer this thread anyway could you tell me What are the codes fragments for timeslider change viewport change and mouse event change?
ibrahim_gabr is offline   Reply With Quote
Old 18-10-2005, 12:51 PM   #12
eeek
Registered User
 
eeek's Avatar
 
Join Date: Mar 2004
Location: UK & Canada
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
err not off the top of my head sorry is 1.46 am here in canada - so ill have to check out the reference tomorrow. Heres a rough idea:

global slidertime

rollout test "test"
(

fn timeslider_val = (

if slidertime == 10 do
(
messagebox "Wow, im at frame 10"
b = box width:10 height:10 length:10
)
)

on test open do
(
Registercallbacktimesliderchange timeslider_val
)

on test close do
(
unRegisterCallbacktimesliderchange timeslider_val
DestroyDialog test -- removes memory
)
)


Thats really rough - the registerCal.. name is wrong so do a search in the reference for "Callbacks" - on mouse events im not too sure about but its pretty much the same.

eek
__________________
Please leave a message after the beep...

Snr Technical Animator
Bioware Corp, Canada
eeek is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
all images displayed on this site are copyright the original artists and may not be reproduced, copied or published elsewhere without their express permission