<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: fillet in spline.. how to get it working? code included in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/fillet-in-spline-how-to-get-it-working-code-included/m-p/4038918#M25819</link>
    <description>it is possible to make another function which add circle with radius at each knot and slice at intercect then colect intersections and original knots sort them in correct order and drav spline with arcs and lines? for me it is much of coding.. some links to spline editing scripts would be handsom..&lt;BR /&gt;&lt;BR /&gt;thnx</description>
    <pubDate>Fri, 17 Oct 2008 20:23:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-10-17T20:23:08Z</dc:date>
    <item>
      <title>fillet in spline.. how to get it working? code included</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/fillet-in-spline-how-to-get-it-working-code-included/m-p/4038917#M25818</link>
      <description>Hello all my first post here so i appreciate all help. Start scripting month ago.&lt;BR /&gt;&lt;BR /&gt;Problem desc: I have a 'planar' spline in which i want to fillet say all knots they are 20, but i'm missing any control about this in maxscript only through UI which is inacceptable for me. Ifound only this reference in help and i'm curious if it is possible in curent maxscript version &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;Constructor&lt;BR /&gt;&lt;BR /&gt;fillet_chamfer ...&lt;BR /&gt;&lt;BR /&gt;Properties&lt;BR /&gt;&lt;BR /&gt;There are no additional properties for Fillet_Chamfer.&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt; and &lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;splineOps.startFillet &amp;lt;editable_spline_or_line_node_or_modifier&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;i'm confused about how to get this work&lt;BR /&gt;say script is part of function and spline is constructed from array of points as point3 in for loop&lt;BR /&gt;&lt;BR /&gt;scripted function here: it's pretty nasty and requies cleaning a bit but im in a hurry&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;spline1 = pickObject prompt:"enter a shape1"&lt;BR /&gt;spline2 = pickObject prompt:"enter a shape2"&lt;BR /&gt;turns = 20&lt;BR /&gt;radius = 10&lt;BR /&gt;nahoda = 5&lt;BR /&gt;&lt;BR /&gt;fn splinefrom2splines spline1 spline2 turns radius nahoda = (&lt;BR /&gt;    local knots1 = #()&lt;BR /&gt;    local knots2 = #()&lt;BR /&gt;    local knotsA = #()&lt;BR /&gt;    local knotsB = #()&lt;BR /&gt;    local lenght1 = curveLength spline1 1&lt;BR /&gt;    local lenght2 = curveLength spline2 1&lt;BR /&gt;    local ss&lt;BR /&gt;    local arr_ss =#()&lt;BR /&gt;    local  i=1&lt;BR /&gt;    local cast = 1 as float /turns&lt;BR /&gt;    local bod1 = point size:10 &lt;BR /&gt;    local bod2 = point size:10 &lt;BR /&gt;    bod1.wirecolor = green&lt;BR /&gt;    bod2.wirecolor = red&lt;BR /&gt;    bod1.pos.controller=path follow:true&lt;BR /&gt;    bod2.pos.controller=path follow:true&lt;BR /&gt;    PosCont1=bod1.pos.controller&lt;BR /&gt;    PosCont1.path=spline1&lt;BR /&gt;    PosCont1.axis=2&lt;BR /&gt;    PosCont2=bod2.pos.controller&lt;BR /&gt;    PosCont2.path=spline2&lt;BR /&gt;    PosCont2.axis=2&lt;BR /&gt;    local knots =#()&lt;BR /&gt;    knots = 0&lt;BR /&gt;    &lt;BR /&gt;    animate on -- create keys&lt;BR /&gt;    ( &lt;BR /&gt;        for i=1 to turns do&lt;BR /&gt;        (&lt;BR /&gt;            at time i PosCont1.percent= (100 / turns) * i&lt;BR /&gt;            at time i PosCont2.percent= (100 / turns) * i&lt;BR /&gt;        )&lt;BR /&gt;    )&lt;BR /&gt;    for i=1 to turns do -- get point positions at time&lt;BR /&gt;    (&lt;BR /&gt;       sliderTime = i&lt;BR /&gt;        in  coordsys world&lt;BR /&gt;        (&lt;BR /&gt;            knots1&lt;I&gt; = bod1.position&lt;BR /&gt;            knots2&lt;I&gt; = bod2.position&lt;BR /&gt;          )&lt;BR /&gt;    )&lt;BR /&gt;    -- begin construction of spline shape&lt;BR /&gt;    for i=1 to turns by 2 do -- A side loop&lt;BR /&gt;    (&lt;BR /&gt;        knots&lt;I&gt; = knots1&lt;I&gt;&lt;BR /&gt;    )&lt;BR /&gt;    for i=2 to turns by 2 do -- B side loop&lt;BR /&gt;    (&lt;BR /&gt;        knots&lt;I&gt; = knots2&lt;I&gt;&lt;BR /&gt;    )&lt;BR /&gt;&lt;BR /&gt;    -- create acctual spline&lt;BR /&gt;&lt;BR /&gt;    ss = splineshape pos:knots&lt;BR /&gt;    addNewSpline ss&lt;BR /&gt;    for i=1 to turns do&lt;BR /&gt;    (&lt;BR /&gt;        local bod&lt;BR /&gt;        bod = knots&lt;I&gt; as point3&lt;BR /&gt;        addKnot ss 1 #corner #line bod&lt;BR /&gt;    )&lt;BR /&gt;    updateShape ss&lt;BR /&gt;    ss&lt;BR /&gt;-- &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; HERE BEGIN PROBLEM PART !!!!! &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;    select ss&lt;BR /&gt;    subobjectLevel = 1&lt;BR /&gt;    actionMan.executeAction 0 "40021"&lt;BR /&gt;    splineOps.startFillet ss &lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;splinefrom2splines spline1 spline2 turns radius nahoda&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;it's not nessesary to calculate fillet in 3d just 2d. it is part of bigger project and resulting spline is control object for animation of mooving skier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;thnx for ANY advice point for similar script which is working&lt;BR /&gt;&lt;BR /&gt;bye peter</description>
      <pubDate>Fri, 17 Oct 2008 16:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/fillet-in-spline-how-to-get-it-working-code-included/m-p/4038917#M25818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-17T16:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: fillet in spline.. how to get it working? code included</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/fillet-in-spline-how-to-get-it-working-code-included/m-p/4038918#M25819</link>
      <description>it is possible to make another function which add circle with radius at each knot and slice at intercect then colect intersections and original knots sort them in correct order and drav spline with arcs and lines? for me it is much of coding.. some links to spline editing scripts would be handsom..&lt;BR /&gt;&lt;BR /&gt;thnx</description>
      <pubDate>Fri, 17 Oct 2008 20:23:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/fillet-in-spline-how-to-get-it-working-code-included/m-p/4038918#M25819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-17T20:23:08Z</dc:date>
    </item>
  </channel>
</rss>

