Jump to content

Get wind Seed Offset value via maxscript


cippall

Recommended Posts

Hi,

 

Is there a way to get the wind seed offset value with Maxscript?

 

Using GrowFx 1.9.9 SP9 and 3dsmax 2020 returns an empty property when listing After Mesh Modifiers properties and Seed Offset seems to be one the missing:

 

showproperties t.Wind
  .Enabled : boolean
  .ScaleFrequency : float
  .AxialRotation : boolean
  .MaxAngle : float
  .OrientForLeaves : boolean
  .Type : name
  .Looping : boolean
  .LoopingPeriod : time
  .AmplitudeMultiplier : float
  .
  .Stiffness : float
  .Stiffness_Graph
  .Flexibility : float
  .Flexibility_Graph

 

Link to comment
Share on other sites

Hi cippall,

 

Ok, we added the following functions to the path, because the seed offset is stored as a separate array in the path.

 

<growfx>.<path>.GetDirSeedOffset <modifier_index_integer>

Returns the Seed offset for the specified modifier, index are 1-based.

 

<growfx>.<path>.SetDirSeedOffset <modifier_index_integer> <new_seed>

Sets the Seed offset for the specified modifier, index are 1-based.

 

Examples:

$.Path_01.GetDirSeedOffset(1)

$.Path_01.SetDirSeedOffset 1 250

 

I'll let you know here as soon as we update all versions on the server and you can download it.

Thanks!

  • Like 1
Link to comment
Share on other sites

  • 3 years later...
  • 2 weeks later...
On 7/27/2024 at 3:53 AM, cippall said:

Hi Eduard,

 

These methodes seem to work fine for Direction Modifiers, but not for After Mesh Modifiers. Can you provide an example for changing the Count Rate and Seed for a Wind modifier placed in the After Mesh Modifiers list?

 

Thank you !

 

Hi cippall,

 

Yes, you are right, GetDirSeedOffset and SetDirSeedOffset are only used for Direction modifiers.
If you need, we can add GetAMDirSeedOffset and SetAMDirSeedOffset to access the Seed Offset for AfterMeshModifiers.

 

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...
On 8/24/2024 at 5:51 AM, cippall said:

That would definitely be useful. 

 

Thank you ! 

 

Ok, as you requested, we have added the following methods to GrowFX:
For version 1.x:

<growfx>.<path>.GetAMDirSeedOffset <modifier_index_integer> 
<growfx>.<path>.SetAMDirSeedOffset <modifier_index_integer> <new_seed_value>
<growfx>.<path>.GetAMDirCountRate  <modifier_index_integer> 
<growfx>.<path>.SetAMDirCountRate  <modifier_index_integer> <count_rate_value>


For version 2.x:

 
<growfx2>.getNodeSeedOffset <node_index_integer>
- Returns the Seed Offset value for the specified node.

<growfx2>.setNodeSeedOffset <node_index_integer> <value_integer>
- Sets the Seed Offset value for the specified node.

<growfx2>.getNodeCountRate <node_index_integer>
- Returns the Count Rate value for the specified node.

<growfx2>.setNodeCountRate <node_index_integer> <value_float>
- Sets the Count Rate value for the specified node.
  
  

 

 

I can compile the update for you, just tell me your 3dsMax version.

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...