Posts: 5
Threads: 2
Joined: Nov 2013
hello,
Is it possible to import a spline from 3ds max?
I looked around on the forums and manual and seems like the answer is no but just wanted to check
thanks!
--Mike
Posts: 690
Threads: 71
Joined: Jan 2015
Sorry, this isn't currently possible. But if you have knowledge of 3ds Max scripting language (to export spline data), give me a call and I'll write an importer for it.
Best regards,
Jake
Posts: 5
Threads: 2
Joined: Nov 2013
(11-22-2014, 06:19 PM)Jake Wrote: Sorry, this isn't currently possible. But if you have knowledge of 3ds Max scripting language (to export spline data), give me a call and I'll write an importer for it.
Best regards,
Jake
thanks Jake! I did find some public maxscripts out there that deal with spline data... i'll try to get something together for you.
--Mike
Posts: 5
Threads: 2
Joined: Nov 2013
I found this maxscript to export splines:
https://algorithmist.wordpress.com/2007/09/18/spline-to-xml-maxscript/
it creates an xml file.
here is a short sample:
------------------------------------
<spline name=’Line01′ knots=’7′ closed=’true’>
<knot x=’-123.018′ y=’53.5028′ z=’0.0′>
<invec x=’-154.627′ y=’16.1465′ z=’0.0′ />
<outvec x=’-91.4084′ y=’90.8591′ z=’0.0′ />
</knot>
<knot x=’-7.033′ y=’88.4169′ z=’-91.3649′>
<invec x=’-77.1479′ y=’83.8192′ z=’-91.3649′ />
<outvec x=’63.0819′ y=’93.0146′ z=’-91.3649′ />
</knot>
<knot x=’110.694′ y=’89.7132′ z=’0.0′>
<invec x=’80.1177′ y=’107.975′ z=’0.0′ />
<outvec x=’141.27′ y=’71.4514′ z=’0.0′ />
</knot>
<knot x=’161.098′ y=’-13.6597′ z=’0.0′>
<invec x=’166.459′ y=’30.5072′ z=’0.0′ />
<outvec x=’155.736′ y=’-57.8267′ z=’0.0′ />
</knot>
<knot x=’61.2687′ y=’-93.0454′ z=’-91.3649′>
<invec x=’100.924′ y=’-86.7235′ z=’-91.3649′ />
<outvec x=’21.6135′ y=’-99.3672′ z=’-91.3649′ />
</knot>
<knot x=’-49.5287′ y=’-89.2301′ z=’-91.3649′>
<invec x=’-2.977′ y=’-116.816′ z=’-91.3649′ />
<outvec x=’-96.0804′ y=’-61.6439′ z=’-91.3649′ />
</knot>
<knot x=’-154.02′ y=’-41.2029′ z=’0.0′>
<invec x=’-145.71′ y=’-73.8184′ z=’0.0′ />
<outvec x=’-162.33′ y=’-8.58747′ z=’0.0′ />
</knot>
</spline>
------------------------------------
would this data be enough for you to write an importer? xml format ok?
thanks!
--Mike
Posts: 690
Threads: 71
Joined: Jan 2015
Good find, I'll give this a try!
Posts: 5
Threads: 2
Joined: Nov 2013
looks like all the links for that script are dead. I emailed the author today and he does not have the script. I found another script from a different author that exports to CSV... trying that now. Seems like once I know the max syntax for the spline data it would be simple to convert it to any output format... will work on it!
thanks!
Posts: 10
Threads: 2
Joined: Sep 2019
Posts: 1,654
Threads: 73
Joined: Jun 2017
09-11-2019, 01:43 PM
(This post was last modified: 09-11-2019, 01:43 PM by _Aka_.)
Hi,
Curvy does not support the SVG format, but if you want to use a simplified subset of the SVG format, it is quite easy to convert between that subset and Curvy's format. Here you can find a useful thread, with a link to a script that does the conversion. Please read this thread and then let me know if you still have any question.
https://forum.curvyeditor.com/thread-612.html
Have a nice day
Please consider leaving a
review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Posts: 14
Threads: 0
Joined: Sep 2016
Quick tip to use if no scripts are available:
The way I've gotten a max spline into Curvy is to use the Spacing Tool in max.
I create a dummy helper and with it selected use the Spacing tool (Shift + I) or Tools -> Align -> Spacing Tool
Create as many points (dummies) along the spline as required, then parent the dummies to another dummy which is at 0,0,0
Export as an FBX to Unity, and on the parent and children of the import apply the curvy scripts (Curvy Spline on the parent) (Curvy Spline Segment on the children)
I hope that made some sense, and if so helps you out :-)
Posts: 1,654
Threads: 73
Joined: Jun 2017
Thanks for the tip Gazoid
Please consider leaving a
review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.