Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3ds max import?
#1
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

 
Reply
#2
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
Reply
#3
(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



 
Reply
#4
 I found this maxscript to export splines:
https://algorithmist.wordpress.com/2007/...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
Reply
#5
Good find, I'll give this a try!
Reply
#6
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!
Reply
#7
How about SVG import?
Reply
#8
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.
Reply
#9
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 :-)
Reply
#10
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.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Import splines from GeoJson Qpid36 4 332 11-22-2019, 03:45 PM
Last Post: _Aka_
  Import SVG to JSON?? Saurabh 14 4,816 09-12-2019, 10:53 AM
Last Post: _Aka_
  Unable to import in 2018.4.2 LTS unity romit99 1 571 06-25-2019, 11:56 AM
Last Post: _Aka_
  Import Curvy from json Issue mlndb10wN 5 1,366 05-29-2019, 06:46 PM
Last Post: _Aka_

Forum Jump: