[Closed] Spline Attaching
I need to attach one spline to another, but, the way I’ve been trying, I have to convert one of the objects into an Editable Poly or Mesh, but if I do that with a spline, it disappears (the idea is to not enable in viewport).
I’ve tried several approaches, but still haven’t been able to do this.
All I want is to re-create the action of opening the modifier panel, clicking on the “Attach” button and clicking on another spline to attach them. But I do not want any user interaction.
Is this possible to be done via script? If so, how? I have tried various ways, but all failed…
Checkout the features or code of my attachSelectedObjects script…
http://www.neilblevins.com/soulburnscripts/soulburnscripts.htm
- Neil
These should allow you to attach editable spline(s) objects.
splineOps.attachMultiple <editable_spline_or_line_node_or_modifier>
Displays Attach Multiple dialog allowing the user to select multiple shapes to attach. Valid in all Sub-Object levels, and when not in Sub-Object mode.
OR
splineOps.startAttach <editable_spline_or_line_node_or_modifier>
Enters “Attach” command mode – valid in all Sub-Object levels, and when not in Sub-Object mode.
-Eric
But I do not want any user interaction
Pixel_Monkey, those methods I know about, but they need user interaction, no use for me… Thanks though…
soulburn, I’ll look at your script… thanks!
Well a little searching here on the forums revealed that if you use:
addAndWeld <to_shape> <from_shape> <weldthreshold_float>
Example:
addAndWeld $line01 $line02 0.0
Will add $line02 to $line01, however undoing it in Max 9 does some wierd offset.
-Eric
Hmmm… Yeah, I saw that in soulburn’s scripts…
I searched the forum, but couldn’t find this
Thanks both of you for your help