Itoo Software Forum

Author Topic: RC global variables ??  (Read 616 times)

Lars Egerrup / LKE Design

  • Jr. Member
  • **
  • Posts: 62
    • LKE design website
RC global variables ??
« 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
Lars Egerrup
LKE Design

E: Lars@LKEdesign.dk
W: www.LKEdesign.dk

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: RC global variables ??
« Reply #1 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
« Last Edit: January 28, 2020, 03:11:58 PM by Dragan »

Lars Egerrup / LKE Design

  • Jr. Member
  • **
  • Posts: 62
    • LKE design website
Re: RC global variables ??
« Reply #2 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.
Lars Egerrup
LKE Design

E: Lars@LKEdesign.dk
W: www.LKEdesign.dk

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: RC global variables ??
« Reply #3 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/)