Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Lars Egerrup / LKE Design on January 28, 2020, 12:51:26 PM

Title: RC global variables ??
Post by: Lars Egerrup / LKE Design on January 28, 2020, 12:51:26 PM
I have lately been wondering if it wasn't  smart to have RC Global Variables?!

Here's an example.  A room, - here it would be great to have the general measures for the room in a global variable that all railclone inserts could make use of, such as Room Height, Door Height, Windows Height, Windows Sill Height ect ect.  Yes, you could gather all building components in one RailClones setup, BUT it lacks flexibility and would end up being unnecessary heavy. It is, in my book, way better to have things split up in smaller manageable  and logical parts sharing the same spline path.
RC could have an insertable avatar holding the global values and all other RC setups could make calls to this avatar. 

Just an idea, - I for sure miss something like this.

Cheers
Title: Re: RC global variables ??
Post by: Dragan on January 28, 2020, 02:58:46 PM
I think you can achieve all that by smart use of RCSpline markers.
https://www.youtube.com/watch?v=rmG2mM6MMnM
Title: Re: RC global variables ??
Post by: Lars Egerrup / LKE Design on January 28, 2020, 07:37:14 PM
Hmmm not really. Especially not with only 9 variables per  marker, there is just enough for most used parameters.
I’ve actually had the same thought and tried it out and it didn’t work well. I even tried to have more than one spline in the tv setups, where one spline was just a container for these global values. It was just too cumbersome to work with.
Title: Re: RC global variables ??
Post by: Dragan on January 28, 2020, 10:06:32 PM
Well, You are right about just only 9 variables but I think this is due to some restrictions in `program core` but Macros can also be very helpful if you need to manipulate with a lot of parameters. I made some extensive macro with 40+ parameters just to make a window frame (https://forum.itoosoft.com/railclone-pro/railclone-4-macros/)