Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: ChrisV on April 22, 2016, 03:00:21 PM

Title: railclone and Maxscript usage
Post by: ChrisV on April 22, 2016, 03:00:21 PM
Hi guys,

couldn't find a lot of documentation on how to use maxscript commands for Railclone. Is there some documentation on this topic and specifically is it possible to create a railclone object, assign a style and assign this to a spline - all from maxscript? the macrorecorder info I get on doing this doesn't seem too helpful. thanks in advance!

cheers,
Chris
Title: Re: railclone and Maxscript usage
Post by: iToo on April 22, 2016, 04:13:36 PM
Hi, i'm afraid it's not possible.

RailClone uses its own format to store the style, which has not a direct translation with Max values. It would be very difficult to make changes from a script.
For this reason, we have not developed any specific support for Maxscript.
Title: Re: railclone and Maxscript usage
Post by: ChrisV on April 25, 2016, 10:40:42 AM
I was afraid you`d say that :)

totally understand that making it able to change things from maxscript would probably be an unnecessary big investment with probably little return of investment.

On the other hand just creating railclone objects, applying styles from the library and assigning the exposed variables and splines via maxscript could probably be usable in more scenarios and not require the internal workings of railclone to be exposed to maxscript.

In my specific scenario I have hundreds of files containing multiple splines that have names assigned to them like pipe_small_style002. And all those styles are already defined in the railclone library. these files are created dynamically and iterated over many times and creating and assigning railclone styles literally thousands of times by hand becomes quite the time consuming task when a simple script would do it automatically. Not sure if anyone else would benefit from this but just putting it out there :)

cheers,
Chris
Title: Re: railclone and Maxscript usage
Post by: Paul Roberts on April 25, 2016, 12:54:14 PM
Hi, just to add that you can assign splines using maxscript, there's a simple script here that shows how that works. https://forum.itoosoft.com/railclone-pro-(*)/scripts-for-railclone/msg13232/#msg13232 (https://forum.itoosoft.com/railclone-pro-(*)/scripts-for-railclone/msg13232/#msg13232)

You can't access the library though but as a workaround you could create a Max file containing all the RailClone objects you wish to apply and use this as a source, duplicating the RC object and assigning the splines using a script.

Thanks,

Paul