Itoo Software Forum

Author Topic: Problems with Multiple RC Spline modifiers on path  (Read 504 times)

Lars Egerrup / LKE Design

  • Jr. Member
  • **
  • Posts: 62
    • LKE design website
Problems with Multiple RC Spline modifiers on path
« on: August 19, 2020, 04:56:51 PM »
Hi,
I might have misunderstood things, but I have made a setup of a kitchen run by markers. My thought was to have one spline modifier for the under cupboards and another (on the same path) for the upper cupboards. However when doing this there is no way I can make it distinguish between the two, resulting in a lot of misplaced cupboards. I have even tried to make separate the under and over cupboards in two separate RC objects but with same result. It get even worse if you have two markers, one on each modifier, with similar placement.
Wouldn't it be good to have a parameter for dedicating the spline modifier either to an RC object - or to a RC generator?

Thanks
Lars Egerrup
LKE Design

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

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Problems with Multiple RC Spline modifiers on path
« Reply #1 on: August 19, 2020, 05:34:26 PM »
Hi Lars.

You should be able to do this by telling the Generator which Spline Marker modifier to use. In the Generator's settings, go to the rules tab and you should see a Markers group. From here you can enter a number to identify the Spline Modifier. Then numbers count from the top of the modifier stack downwards (0 means use all modifier)



I hope that helps,

Paul.
Paul Roberts
iToo Software

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Problems with Multiple RC Spline modifiers on path
« Reply #2 on: August 19, 2020, 05:43:38 PM »
Thanks Paul

You can also use selector with arithmetic expressions.
Here is a little demo scene file included as well


« Last Edit: August 19, 2020, 05:45:50 PM by Rokas »
Rokas

Lars Egerrup / LKE Design

  • Jr. Member
  • **
  • Posts: 62
    • LKE design website
Re: Problems with Multiple RC Spline modifiers on path
« Reply #3 on: August 20, 2020, 09:14:53 AM »
Thanks guys,  - wow help from two experts :)  Amazing!!
Rokas, it look good, but I am not sure I follow your thinking. What would you then write in the arithmetic function?
Lars Egerrup
LKE Design

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

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Problems with Multiple RC Spline modifiers on path
« Reply #4 on: August 20, 2020, 09:26:06 AM »
I have attached max file for Your reference.

Code: [Select]
return if(XMarkerID==0,1,2);

Hope this helps
Rokas

Lars Egerrup / LKE Design

  • Jr. Member
  • **
  • Posts: 62
    • LKE design website
Re: Problems with Multiple RC Spline modifiers on path
« Reply #5 on: August 20, 2020, 10:28:35 AM »
OK guys,
I found the solution. Pauls solution won in this run, as Rokas solution felt a little backwards - and not suitable for this task (I might be wrong).
First I was little confused of the numbering in the modifier stack - counting from top and down, but once I got the right order it worked.

Would it be possible, in the evolvement of the marker thing, that you could have a more "direct reference" to the selectorlist - I am thinking of a combobox with the items from the selector instead just a index number  - I know it is much harder to program, but it would make the user experience much greater.

Anyway, here are some screen dumps showing my solution.
So it consist of one RC object containing two generators, one for under cupboards and one for upper cupboards. The path holds two Spline modifiers, one for each generator.

If you have comments to my solution  - like fx. a better way to solve this. I am all ears :)

Thanks
Lars Egerrup
LKE Design

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

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Problems with Multiple RC Spline modifiers on path
« Reply #6 on: August 20, 2020, 11:15:33 AM »
Yes, Paul's is better in this case. I just added info so You can get more info about the topic, not necessarily for this case.

Regarding Your suggestion- we could not make it happen. Maybe we will come up with something in future versions.
Rokas

Lars Egerrup / LKE Design

  • Jr. Member
  • **
  • Posts: 62
    • LKE design website
Re: Problems with Multiple RC Spline modifiers on path
« Reply #7 on: August 20, 2020, 07:43:11 PM »
As a side question to this. Have you got confirmation from the Corona people that your new material thing in RailClone  (the one that make materials like Forrest Pro) will be released with the new upcoming version? I haven't seen any indications from their side about this?

This would make a giant difference on how I/we would work with RailClone   - suddenly we could make the setups as templates and just put in the items for our needs (at least that is what I dream of). If this is the case, wouldn't it then be an idea to be able to "feed the segments" from the railclone mainpanel - like you do with splines and clipping areas?

Thanks
Lars Egerrup
LKE Design

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

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Problems with Multiple RC Spline modifiers on path
« Reply #8 on: August 20, 2020, 08:24:18 PM »
As a side question to this. Have you got confirmation from the Corona people that your new material thing in RailClone  (the one that make materials like Forrest Pro) will be released with the new upcoming version? I haven't seen any indications from their side about this?
That is already working with Corona 6 RC2

This would make a giant difference on how I/we would work with RailClone   - suddenly we could make the setups as templates and just put in the items for our needs (at least that is what I dream of). If this is the case, wouldn't it then be an idea to be able to "feed the segments" from the railclone mainpanel - like you do with splines and clipping areas?
Thanks

There are some scripting possibilities for sure. We will discuss internally if we can make this manageable directly within RC.
Rokas