Go Back   SplutterFish Forums > SplutterFish Client Forums > Brazil - Tech Support
Login
Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-Feb-2010, 11:35 AM
RichardAnnema's Avatar
RichardAnnema RichardAnnema is offline
Automated Posting Zombie Machine
 
Join Date: Jul 2002
Location: The Netherlands
Posts: 9,409
Default

There's no specific default settings file for Brazil; maxstart.max -would- typically be the place you set these things.

You could do something with scripting, a la:
Code:
callbacks.removescripts id:#brazil_defaults
callbacks.addScript #postRendererChange "
    if ((renderers.current.classID as string) == \"#(95494396, 474502030)\") do (
        if (getAppData trackviewnodes.brazil_r_s 399 != \"defaults set\") do (
            -- set defaults here
            -- example start
            if (queryBox \"Do you wish to apply custom default Brazil settings?\") do (
                local brz
                for i = 1 to 4 do (
                    brz = trackviewnodes.brazil_r_s[i]
                    local brz_is = brz.Sampling_Parameter_Block_Holder
                    brz_is.aa_min = 1
                    brz_is.aa_max = 2
                    brz_is.clamp = 1e6
                    brz_is.filter_name = \"BrAreaFilter\"
                    brz_is.filter_radius = 0.001
                )
                -- example end
            ) -- querybox
            setAppData trackviewnodes.brazil_r_s 399 \"defaults set\"
        ) -- check appdata
    ) -- check renderer classID
" id:#brazil_defaults
..sticking that into a maxscript file in your <max>\scripts\startup\ folder.
Unfortunately the #preRendererChange callback already shows the trackviewnode as existing, so preventing the defaults-setting on existing files (which won't have the appdata marker) would need some further pondering.
__________________
__________________
Richard Annema
Director of Client Relations
SplutterFish
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
Reply


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
Forum Jump


All times are GMT. The time now is 07:28 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.