Itoo Software Forum

Author Topic: sub array macro  (Read 474 times)

Dragan

  • Full Member
  • ***
  • Posts: 132
sub array macro
« on: August 18, 2018, 09:20:16 AM »
Hi
Is this a bug or I`m missing something?
Is Sub Array suppose to cover dimension of my reference plane I set below  RC spline?
The size of the Sub Array & refernece Plane is 150x200cm. Spline is 200x300cm and the Sub Array is connected to the StartButtom.

Best Regards
Dragan
« Last Edit: August 18, 2018, 04:52:21 PM by Dragan »

Dragan

  • Full Member
  • ***
  • Posts: 132
Re: sub array macro
« Reply #1 on: August 21, 2018, 03:04:15 PM »
Hi
Since I did not menage to solve this problem I made my own Sub Array.
I still have problem with understanding Compose in Group Mode so I made it in Sequential Mode.
Please, take a look into Style.
I made two SubArrys (There is Dascription how to use) .
One is with single inputs and Second is With Multiple Inputs (big in size  ;D)
Fill free to play with all parameters & give me some direction to improve it.

Idea is to make SubArray for easy Nesting. My initial idea is to place each SubArray to the Bottom Left Corner and then to resize & translate inside the Clipping Spline area using exported parameters.
So, EACH COPY of the Macro will be initially set on BL Corner. 
It will work without any generator added since A2S is already present in the Macro.

Downside (for now  ;) ) is no easy way for Evenly Use.
But this is still WIP so if there is any Idea fill free to jump in...



problems:
when there are no segments in input slots in Multiple SubArray  and when changing `Selector Index` RC will sometimes hung for a long time. Some times will return positive but sometimes will return empty segments.
Disconnecting  and reconnecting Clipping Spline node will help (EDIT: see video at 30sec).


Best Regards
Dragan

P.S. I will make a video if needed....

« Last Edit: August 21, 2018, 04:43:36 PM by Dragan »

Dragan

  • Full Member
  • ***
  • Posts: 132
Re: sub array macro
« Reply #2 on: August 21, 2018, 04:25:29 PM »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1618
Re: sub array macro
« Reply #3 on: August 21, 2018, 06:44:23 PM »
Apologies for the problematic Macro, it seems that something has changed in RailClone since this was created that means it no longer works. I've attached a possible alternative version, it should work fine, but only in tile mode and the pivot needs to be aligned to the source geometry's bottom left corner. You'll be glad to know that for RailClone 4 we have plans to make this much much easier as nesting will be built right into all the generators.

For now though I see you have created a nice macro that seems to be working well. The clipping issue could be related to Max's booleans function which we use. As you've founded, reconnecting the spline appears to fix it.

All the best,

Paul
Paul Roberts
iToo Software

Dragan

  • Full Member
  • ***
  • Posts: 132
Re: sub array macro
« Reply #4 on: August 21, 2018, 07:23:51 PM »
Thank You Paul.
Is there any approximate date for RC4, so I know whether I wait or do my `Parametric Window Library` the hard way.

Best Regards
Dragan
« Last Edit: August 22, 2018, 07:46:21 AM by Dragan »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1618
Re: sub array macro
« Reply #5 on: August 22, 2018, 01:55:22 PM »
Hi,

I'm afraid we don't have a date yet, but it will be some time before it becomes available, even to beta test.

I've had another look at the style and since you are using generators to create the sub array you won't be able to attach the output to a second generator. With that in mind and since that's obviously not an issue for your approach, there might be a slightly easier way to create that effect that bypasses the compose operator and simply uses an A2S generator, changing the size of the window using padding values.

I've attached an example in case it helps. It has options to use absolute sizes as well as sizes that are a percentage of the window size.

I hope it helps, if you have any questions, please let me know.

All the best,

Paul
Paul Roberts
iToo Software

Dragan

  • Full Member
  • ***
  • Posts: 132
Re: sub array macro
« Reply #6 on: August 22, 2018, 02:58:57 PM »
Thank you Paul,
Now I have to spend 3 days decoding your Style  ???  :D
Looks great and I`m sure it will work faster then my initial `Compose` approach.
Although I`m a little bit concerned how those approach with Generators as SubArrys will work on a large scale with a lot of spline segments.



Dragan

  • Full Member
  • ***
  • Posts: 132
Re: sub array macro
« Reply #7 on: August 22, 2018, 03:27:32 PM »
Yes, My problem was to place everything to BL Corner. Now I can see you are using Right/Top Padding to `push` everything on right position. Great! I will try to adopt my Style as you suggest.
Thank You!



Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1618
Re: sub array macro
« Reply #8 on: August 22, 2018, 03:37:05 PM »
No problem, glad it was helpful :)

Thanks,

Paul
Paul Roberts
iToo Software

Dragan

  • Full Member
  • ***
  • Posts: 132
Re: sub array macro
« Reply #9 on: August 24, 2018, 08:58:39 AM »
Hi
I made a new SubArry Macro. I introduced some more options like Mirror and Additional Float Segment.
Since I make this Macro for door/window Generator setup I guess additional segment could be used for e.g. door handle..
It is still WIP but maybe someone will find it usefull.

While I wass working a notice a possible bug.
Some Arithmetic Macros have a bug when COPY/PASTE is applied with ON/OFF parameter is Exported.
1. Place e.g "Inverted Value"  and export ON/OFF parameter
2. Place Numeric Nodes and connect them to Macro
3. Select ALL (Macro & Numeric Nodes) and Copy/Paste
.... check position and connection... seams to be switched







« Last Edit: August 24, 2018, 11:31:46 AM by Dragan »

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1407
    • iToo
Re: sub array macro
« Reply #10 on: August 24, 2018, 02:36:57 PM »
Bug Confirmed, Thank You for reporting it.
Rokas
iToo Software