railing question

railing question

Anonymous
Not applicable
1,187 Views
7 Replies
Message 1 of 8

railing question

Anonymous
Not applicable

Does anyone know of a free script that will give me more control on aec Railings? I need to cope the joints of hand railing.  Thanks in advance.

this is what i get from maxthis is what i get from maxthis is the result i needthis is the result i need

 

0 Likes
Accepted solutions (1)
1,188 Views
7 Replies
Replies (7)
Message 2 of 8

leeminardi
Mentor
Mentor

No script but you could convert the railing to an editable mesh and move the end vertices of the rail into the post.  For the example below move them in the -X direction.

rail1.JPG

lee.minardi
0 Likes
Message 3 of 8

Anonymous
Not applicable

Thanks @leeminardi  however that what I have been doing. I was hoping there was a trim modifier that i could use.

This is time consuming big time.

 

0 Likes
Message 4 of 8

irishman_team_kilber
Mentor
Mentor

there is a trim/exended that i have just noticed but i don't know how well it will work on AEC rails/objects or even if it will work on AEC objects due to i am using max 9 they mite of improved it in the newer version of max

 

https://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/3DSMa...

 

autodesk has not  updated the AEC since v5 i think, so you are limited in what you can do, they have not updated it because they brough out the BIM (Building Information Modeling) software https://www.autodesk.com/bim-360/

Message 5 of 8

leeminardi
Mentor
Mentor
Accepted solution

Here's an approach that may be worth trying:

  1. Change the pivot of the railing to Center to Object.
  2. Set the profile for the Lower Rail(s) to none.
  3. Make a clode/copy of the railing at the same location.
  4. For the copy set the lower rail profile to round, the post and top rail profiles to none and shorten the length enough so that the lower rail does not penetrate the posts of the original railing.

This process can be done to a collection of railings all at once so it should be fairly fast and easy.

 

lee.minardi
Message 6 of 8

Anonymous
Not applicable

I see @leeminardi  at first i thought too much work but by making a collection as your are saying it makes all the sense it the world! Great idea! Thanks lee!

 

0 Likes
Message 7 of 8

Anonymous
Not applicable

Thanks @irishman_team_kilber . although it does not appear to be available for the railing or the railing as an editable poly, thank you for pointing out the trim/extend command that will be useful! Did not realize that was there

 

 

0 Likes
Message 8 of 8

leeminardi
Mentor
Mentor

Mark,

I found that centering the Pivot didn't always do what it was meant to do, that is make it so that when the copied railing that only has the lower rail is shortened it does the shortening from both ends.

The following script will work on a railing that has its pivot at the end. It only works on one railing at a time but requires no user input.  You can edit the value for the rails to meet your requirements.

 

-- creates  a clone/copy of a railing that has a lower rail 2" shorter than 
-- the main rail and then moves the copy 1.0 in local x.
-- LRM 2/26/2019  v1.0
$.Top_Rail_Profile = 1  -- round
$.Lower_Rail_Profile = 0  -- none
$.Post_Profile = 1  -- round
$.Fencing_Type = 1
$.Picket_Profile = 1
$.Lower_Rail_Profile = 0
actionMan.executeAction 0 "40213"  -- Edit: Clone
maxOps.cloneNodes $ cloneType:#copy newNodes:&nnl
select nnl
s = $.Railing_Length
$.Top_Rail_Profile = 0
$.Lower_Rail_Profile = 1
$.Post_Profile = 0
$.Fencing_Type = 0
toolMode.coordsys #local
$.Railing_Length = s - 2
move $ [1.0,0,0]
clearSelection()
lee.minardi
0 Likes