Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: George on December 11, 2013, 01:39:46 AM
-
I've attached a file showing what i'm trying to do. Here's some pseudo-code:
segmentWidth = 4.2
sectionLength = XSectionLength
newSegmentWidth = sectionLength / floor(sectionLength / segmentWidth)
scaleFactor = (newSegmentWidth / segmentWidth) * 100
But it's not doing this, and the one time it was working, it seemed to be working at low-precision (I was getting gaps and snapping).
-
Ok, it's definitely casting everything to integers. Piping the output of an expression to, say, ScaleX makes no difference if it's 8.0-1.0 or 8.0-0.01.
-
I can confirm the bug: some arithmetic expressions are evaluated as integer values. We've already identified and fixed the problem in our internal build.
Have you considered to use the new Adaptive (http://www.itoosoft.com/railclone/reference/refgenl1s.php#default) mode ? I think it does exactly what you need. If not, we would prepare a custom patch for you.
-
I'm doing something a bit more complicated, where some segments should stretch to fit and others should be fixed (using a sequence node). A patch would be much appreciated!
-
Please, tell me your Max version. We'll prepare it.
-
Max 2014 64 (and the rendernode too if it's different!)
-
I just sent you the patch by e-mail. Render nodes use the same files.
-
Thanks Carlos!
I actually used a work-around to get the job out today, but I'm going to have a play with this on Monday.