Itoo Software Forum

Author Topic: Using Different Bottom/Top/Default Slides after the X Evenly Segment  (Read 452 times)

suppenhuhn

  • Full Member
  • ***
  • Posts: 125
Hi!
I've made a simple Window using a Array2S Generator with the Segment Y Role Macro plugged into the X-Evenly & Start Slots - it's a 1:1 setup as in this coffered ceiling Tutorial: https://www.itoosoft.com/tutorials/creating-a-procedural-coffered-ceiling-with-3ds-max-and-railclone?back=page%3D1%26tag%3Drailclone

Now I'm asking myself if it's possible to use different segments for the Y-Evenly-default, top, default, bottom and AFTER the X-Evenly cause the right side should be a fixed glas frame and also without a transom

For better understanding please see the attached image  ;D

iToo has probably the best support & community i know !!

I'm using it with Max 2019 & Vray 6

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #1 on: January 19, 2022, 06:35:43 AM »
Sure, it`s possible. Simple conditional (position on a spline more/less 50%) should do the trick.
attached is just a sample (sorry, I`m at some deadline project), but you will figure out the rest  ;)
« Last Edit: January 19, 2022, 09:08:27 AM by Dragan »

suppenhuhn

  • Full Member
  • ***
  • Posts: 125
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #2 on: January 19, 2022, 09:25:50 AM »
Hi!
Thanks for the quick answer & effords !
Unfortunately i can't open the file - we're using Max 2019  :-[
« Last Edit: January 19, 2022, 09:27:54 AM by suppenhuhn »
iToo has probably the best support & community i know !!

I'm using it with Max 2019 & Vray 6

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #3 on: January 19, 2022, 09:33:52 AM »
uooops, my bad
Sorry.
I used the tutorial file just to give you a hint.
Just pay attention to segment Y Fixed size to be all the same to avoid gaps between default and top/bottom/evenly

suppenhuhn

  • Full Member
  • ***
  • Posts: 125
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #4 on: January 19, 2022, 09:45:23 AM »
Awesome, thank you SOOO much!  :)
iToo has probably the best support & community i know !!

I'm using it with Max 2019 & Vray 6

suppenhuhn

  • Full Member
  • ***
  • Posts: 125
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #5 on: January 19, 2022, 05:49:38 PM »
Maybe one more question:

I've tried several times but can't get it work: Is it possible to place the mullion by adding a vertex to the (bottom) segement  of a clippingarea-spline instead of using the X-Evenly settings?
« Last Edit: January 19, 2022, 05:54:28 PM by suppenhuhn »
iToo has probably the best support & community i know !!

I'm using it with Max 2019 & Vray 6

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #6 on: January 19, 2022, 06:41:32 PM »
Unfortunately, no.
Extend X/Y A2S not working as separate X/Y Spline.
But, with RC5 you could get separation using Marker. Only one/first marker on start position will be used to get User_ Data, but not to affect geometry.
So, you could get a numeric value from the User_Data field (eg. percentage separator) for each rectangular subspline. However, this will also probably require some nesting and a different approach than the usual way.

Another way could be adding the numeric Parameter and using it as a value for Conditionals Nodes you already have on 50% to separate Left/Right.
Of course, some more Composing Operators should be introduced at that point to add the mullion segments.

From my experience, I would go with Marker+Nesting. You will get more freedom and a more open Style for future upgrades. Also, I would try to make Macros to create basic Window Frames.

Another thought on the topic. With RC you can make a very complex and fantastic generator. I`ve done numerous versions of Windows Generators based on clients' specific needs with a lot of parameters and features. The only thing to keep in mind is the scale of your project. A nested/complex generator could slow down on a very large-scale project. 

   
« Last Edit: January 19, 2022, 07:13:13 PM by Dragan »

suppenhuhn

  • Full Member
  • ***
  • Posts: 125
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #7 on: January 21, 2022, 11:32:20 AM »
Hey, thanks for the hint! I'll take a look into the markers as soon i've finished the actual project.

For now i think i'll better use a X-spline instead of the Clipping-Area.

But there's on question left ( yet ):
Is there a conditional-like item available that spits out numeric values ( here: the Y size values form a numeric input ) depending on the Segments / Spline MatID ?
I've tried it with a conditional but can't plug numeric values into the true/false inputs of that item.
And my trial expression has errors : if (XSplineMatID==1, input1, input2)
« Last Edit: January 21, 2022, 12:04:11 PM by suppenhuhn »
iToo has probably the best support & community i know !!

I'm using it with Max 2019 & Vray 6

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #8 on: January 21, 2022, 12:04:22 PM »
You need to export parameters first on the Conditional operator node, like with the transform operator.

suppenhuhn

  • Full Member
  • ***
  • Posts: 125
Re: Using Different Bottom/Top/Default Slides after the X Evenly Segment
« Reply #9 on: January 21, 2022, 12:26:23 PM »
Yay!!!
Stupid me - the expression is working now  :D

return if(XSplineMatID == 1, Input1,Input2);
« Last Edit: January 21, 2022, 12:28:20 PM by suppenhuhn »
iToo has probably the best support & community i know !!

I'm using it with Max 2019 & Vray 6