Lauren Nayman Posted May 2, 2018 Share Posted May 2, 2018 I am trying to create a script where I can select a shape, scale it to a specified area, extrude it to a specified height and then duplicate array the extruded object in any direction. I found a couple Marionette scripts through archived posts that work well for stairs, but I can't change the step directions on any of them. How can I expand on this to array the duplicates in a chosen direction, at a set distance from each other? Quote Link to comment
AlanW Posted May 2, 2018 Share Posted May 2, 2018 (edited) @Lauren NaymanThis may assist. Have a look at the 3D Array Node you can change direction. X,Y or Z 3D_Array_v2018.vwx Edited May 2, 2018 by Alan Woodwell Quote Link to comment
Lauren Nayman Posted May 2, 2018 Author Share Posted May 2, 2018 @Alan Woodwell How do I change the direction? When I used the 3D Array xyz node from this script, but connected to the dir, stp V and countV ports, only the Scale by Area node had any function. Quote Link to comment
AlanW Posted May 2, 2018 Share Posted May 2, 2018 (edited) @Lauren NaymanChange the number in dir see attached. 0 for x, 1 for Y & 2 for Z The Dir input only takes 0,1 or 2 anything else the node will not respond. Add a sketch of what you are trying to achieve. Edited May 2, 2018 by Alan Woodwell Quote Link to comment
Lauren Nayman Posted May 2, 2018 Author Share Posted May 2, 2018 (edited) I'm trying to be able to stack boxes in any direction. @alanwoodwell Edited May 2, 2018 by Lauren Nayman Quote Link to comment
Lauren Nayman Posted May 2, 2018 Author Share Posted May 2, 2018 @Alan Woodwell Please see above Quote Link to comment
AlanW Posted May 2, 2018 Share Posted May 2, 2018 (edited) @Lauren NaymanHi GTG to work now but there are a number of ways to do this, either as you have drawn from lines, could use rect and extrude then place them. Some one may respond in your time zone but will look in 12 Hrs time. Try these 3D_Grid_of_Objects_MFarrell.vwx Cubby_V004_180426.vwx Edited May 2, 2018 by Alan Woodwell Quote Link to comment
AlanW Posted May 3, 2018 Share Posted May 3, 2018 (edited) @Lauren NaymanHi These 3 arrays will do it in different directions but i want to combine them into 1 with choices using the Radio Button which I havn't use so will need to work it out to give me options. The image is slightly different as i cut it down to 1 Network. Still looking at radio button or other for chices. HTH Extrude and array.vwx Edited May 3, 2018 by Alan Woodwell Quote Link to comment
AlanW Posted May 3, 2018 Share Posted May 3, 2018 (edited) @Lauren Nayman Hi This should give you the options you are after i hope. Extrude and array_V001.vwx Edited May 3, 2018 by Alan Woodwell Quote Link to comment
AlanW Posted May 3, 2018 Share Posted May 3, 2018 And Just for fun here is a random colour one. Random Colour Extrude and array_V001.vwx Quote Link to comment
Lauren Nayman Posted May 4, 2018 Author Share Posted May 4, 2018 @Alan Woodwell When I run the V0001 file, I get the bottom two extrudes overlapping, and the top one is far above the stack. But now that I see how this script is run, I can try to figure out how it works to suit my needs! Thank you for your help, and I'll reach out if I have more questions. Quote Link to comment
AlanW Posted May 4, 2018 Share Posted May 4, 2018 @Lauren NaymanHi yes i see that occasionally will look. Quote Link to comment
Lauren Nayman Posted May 7, 2018 Author Share Posted May 7, 2018 @Alan Woodwell I've been playing with it a little more and it works beautifully in the x and y directions, but I'm not sure why there's such a big gap in the z direction. I wonder if it's influenced by the sub node somehow. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.