View Full Version : Spline Attaching
Celarien 04-25-2007, 07:56 PM 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...
|
|
soulburn3d
04-25-2007, 09:23 PM
Checkout the features or code of my attachSelectedObjects script...
http://www.neilblevins.com/soulburnscripts/soulburnscripts.htm
- Neil
PiXeL_MoNKeY
04-25-2007, 09:44 PM
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
Celarien
04-25-2007, 10:48 PM
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!
PiXeL_MoNKeY
04-25-2007, 11:34 PM
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
mvinicius
04-26-2007, 10:10 PM
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 :)
CGTalk Moderation
04-26-2007, 10:10 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.