cippall Posted August 3, 2024 Report Share Posted August 3, 2024 Hi Eduard, How can one create a wind after mesh modifier for each path for a GrowFx 2 object using maxscript? Cheers! Quote Link to comment Share on other sites More sharing options...
Eduard Posted August 3, 2024 Report Share Posted August 3, 2024 Hi You need to write a program that will add the wind nodes and connect them to path nodes. Please see the Properties and Methods for the Node editor here: https://exlevel.com/growfx2-manual/MAXScript.html Now I'm on a small business trip and can't write such a program. I'll be able to do this only after August 6. Thanks! Quote Link to comment Share on other sites More sharing options...
cippall Posted August 3, 2024 Author Report Share Posted August 3, 2024 Hi Eduard, I managed to create a wind and attach it to the paths. -- Create wind direction modifier wind_direction = $.addNode #NDirWind "Wind" 0 0 -- Connect wind direction to path 1 $.createConnection 1 4 wind_direction 2 -- Create public node public_node = $.addPublicNode wind_direction 3 "Wind" 100 0 -- Creating wind helper: gfx_wind = Windhelper name:($.name + "_wind") -- Attach the wind to the Public node: $.attachObjectToPublicNode public_node gfx_wind All good so far. While trying to modify the wind modifier properties values all work apart from Looping Value. /* WindDirection Values: [6] - Stiffness [7] - Flexibility [8] - Scale Frequency [9] - Amplitude Multiplier [11] - Use axial rotation [12] - Max angle [13] - Use Strength [14] - Strength factor [16] - Orientation for leaves [17] - Angle strength [19] - Looping Animation [20] - Looping period */ looping_period_property_index = 20 new_looping_value = 33 $.setNodeParamValue wind_direction looping_period_property_index new_looping_value What am I missing? Cheers! Quote Link to comment Share on other sites More sharing options...
Eduard Posted August 7, 2024 Report Share Posted August 7, 2024 Hi cippall, Sorry for the late reply! Yes, you are right, the setNodeParamValue method didn't change the value with the Time type. But now I've fixed this bug, and I can send you an update. What version of 3dsMax are you using? Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.