Notifications
Clear all

[Closed] How to "Pick Railing Path" via maxscript?

I would like to use “Pick Railing Path” via maxscript. But i can’t find information in the docu, here: http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-20D08274-69E6-4600-9E26-4501CFCFE63-815.htm

showProperties of a railing object display this:

  .Lower_Rail_Width : float
  .Lowest_Rail_Height : float
  .Lower_Rail_Spacing : float
  .Number_of_Lower_Rails : integer
  .Top_Rail_Spacing_to_Next_Rail : float
  .Lower_Rail_Profile : integer
  .Post_Depth : float
  .Post_Width : float
  .First_Post_Offset : float
  .Post_Spacing : float
  .Number_of_Posts : integer
  .Top_Rail_Depth : float
  .Top_Rail_Width : float
  .Top_surface_of_Top_Rail_Height : float
  .Railing_Length : float
  .Top_Rail_Profile : integer
  .Lower_Rail_Depth : float
  .Posts_oriented_with_curved_Railing : boolean
  .Last_Post_Offset : float
  .Post_Extension_beyond_bottom_of_Top_Rail : float
  .Post_Profile : integer
  .Fencing_Type : integer
  .Picket_Depth : float
  .Picket_Width : float
  .First_Picket_Offset : float
  .Picket_Spacing : float
  .Number_of_Pickets_between_each_pair_of_Posts : integer
  .Pickets_oriented_with_curved_Railing : boolean
  .Last_Picket_Spacing_to_Post : float
  .Picket_Profile : integer
  .Picket_Extension_beyond_bottom_of_Top_Rail : float
  .Picket_Bottom_Offset : float
  .Fill_Thickness : float
  .Fill_Top_Offset : float
  .Fill_Bottom_Offset : float
  .Fill_Left_Offset : float
  .Fill_Right_Offset : float
  .Texture_Mapped : boolean
  .Number_of_segments_between_each_pair_of_Posts : integer
  .Respect_Path_Corners_in_rails : boolean
  .realWorldMapSize : boolean
5 Replies

Unfortunately, it seems that MaxScript doesn’t expose this method.

boring. Is there a other way?

btw. in railing.dlo i found the String: AVRailPickPath

check this http://forums.cgsociety.org/showthread.php?t=746512
I think it will work for you too.

Thanks for the link.

If i understand is right: I can use any UI element via MXS, so it should be possible to “click” on “Pick Railing Path” and input a path?

hm… unfortunately, since it’s a pick button, I only managed to enabled picking mode… I don’t know if there is any way to pick the object without clicking in the view though

Try using Rotem’s Shiffman “WindowShopper” ( http://www.monotoneminimal.com/free-tools ) to get the UI handle easily and watch the messages.

                             [UI handle] [message]

windows.sendMessage 526826 0x0201 0 0
windows.sendMessage 526826 0x0202 0 0

The two lines above, will enable “pick mode”. In case you need the Line’s handle, you can get it with the following line of code.
GetHandleByAnim $

Hope that helps a bit…