Itoo Software Forum

Author Topic: (3dsmax bug?) Spline mat ID issue : Reverse spline reverse the mat IDs  (Read 839 times)

Pixelab

  • Jr. Member
  • **
  • Posts: 78
  • Suave mari magno
    • pixelab.be
Maybe it's a 3dsmax bug, but when you reverse a spline, the mat IDs of the segements are reversed too (maybe because vertex order is reversed, and IDs are stored in relation to vertex numbers)

This renders the option of using different mat ID to genereate different Railclone variations cumbersome, since when you attach various splines together, they are often reversed to allow attachement.

Does anyone had the same problem ? Is there a scipt/tool somewhere to reverse the spline WITHOUT reversing his ID (or a script/tool to reverse the mat ID only)

Using max 2011/2012 and last railclone release. Maybe it has been fixed in the last MAX versions ?
« Last Edit: April 15, 2015, 10:12:49 AM by Pixelab »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1599
Hi,

Unfortunately this is a limitation of 3ds Max that still persists in current versions. It's a problem I've encountered before too and I'm looking to see if there's an easy way around this. If I find something I'll post it here. 

Many thanks,

Paul
Paul Roberts
iToo Software

Pixelab

  • Jr. Member
  • **
  • Posts: 78
  • Suave mari magno
    • pixelab.be
Thanks for the fast answer. Glad to see that you are aware of the issue.

It's really an annoyance, because Railclone is not to blame but it hinders the power of some of RC tools

I'm thinking of a simple script (Mat ID of a spline could be listed, and then this list could be somehow reversed ?) but I've no experience in this field

The workaround I've found is to break all the vertices. This basically transform each segment into a spline, and thus the ID cannot be messed up. But again, working with that kind of exploded splines limits RC usage.
« Last Edit: April 15, 2015, 12:39:07 PM by Pixelab »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1599
Hi,

I had a little time in my lunch break and had a go at creating a quick script with options to either reverse spline as usual, reverse the splines but keep the material IDs where they are, or just reverse the material IDs. It should work on a selection of multiple splines sub objects.




Please note this is not an official iToo script, rather it is something I've created (prompted by your post) for my own use, so please try at your own risk.

Attached is the .ms file, just drag it onto your viewport to run. Let me know if you encounter any issues.

Cheers,

Paul
« Last Edit: April 15, 2015, 07:53:05 PM by Paul Roberts »
Paul Roberts
iToo Software

Pixelab

  • Jr. Member
  • **
  • Posts: 78
  • Suave mari magno
    • pixelab.be
WOW !! That's impressive !

You're taking support to the next level  :D

Thanks a lot