creating repeating instance shapes along a curve

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Manticor
Posts: 160
Joined: 09 Jun 2011, 22:41

creating repeating instance shapes along a curve

Post by Manticor » 25 Nov 2014, 18:22

Hi I'm a bit of a newbie when it comes to ice but trying to learn some more.
I'm making a fence maker compound that puts instance shapes along a curve. I've got everything working and the shapes follow the tangents of the curve but I can't figure out how to get repeating shapes from an instance shape node sampling a group of objects.I can only get it to kind of work by using a randomise around value. But it won't let me pit in an array into the input as it requires per object or per point. I've got the array list repeating by getting the number of points indices and then running that through a modulo to get a repeating pattern array based on the number of objects in the group.... But it won't let me plug it in

Can anyone help me out?

NNois
Posts: 726
Joined: 09 Jun 2009, 20:33

Re: creating repeating instance shapes along a curve

Post by NNois » 25 Nov 2014, 18:48

so you're stuck at the repeating part ? it's a tricky one, but if you want to go further you'll have to manage sampling uniformly the curve, then more difucult would be sampling on subcurves... and for that a small compound from EM_Tolls works beautifully (emTool _ Get Position on Curve).
Here is a scene https://drive.google.com/file/d/0B1K5Lo ... sp=sharing showing you a compound example creating instances (or strands) along curve AND subcurves.
Attached here a screenshot

Can you share a screenshot of you're to better understand the problem ?
You do not have the required permissions to view the files attached to this post.

Manticor
Posts: 160
Joined: 09 Jun 2011, 22:41

Re: creating repeating instance shapes along a curve

Post by Manticor » 26 Nov 2014, 10:16

Thanks very much for the quick help Nnois. Unfortunately were on XSI 7.01 at work and I couldn't find a version of Emtools that works with v7 .
But I did take your advice and learned something from it .And then I realised that randomize value by range was a compound so I went inside and rummaged around and found how it spat out per point data .... and voila ! I managed to get it working .So Im quite chuffed with myself. Now I've just got to explore the SDK a bit to find where it stores the transform data for each particle and clone out the original objects with Python which shouldnt be too difficult.

I will take a look at your compound when Im at home to see how you handle subcurves.

Thanks again

User avatar
Mathaeus
Posts: 1745
Joined: 08 Jun 2009, 21:11
Location: Zagreb, Croatia

Re: creating repeating instance shapes along a curve

Post by Mathaeus » 26 Nov 2014, 11:55

Manticor,

if you're still looking for ICE tool that uniformly distributes something along curve (or exactly, an array) that works with SI 7.01 - it is "mt strand fitting" node from mt strand tools, an early version of Helge Mathe's Melena. For small example, necklaces in this pic belongs to this ICE node. And many other things in my ICE life. I'll post setup and addon this evening ( now it's 12 AM here), if you will not found something else in meantime. Setup is 'adaptive', by defining the radius of one pearl, ICE fills an appropriate number of particles along curve.

Manticor
Posts: 160
Joined: 09 Jun 2011, 22:41

Re: creating repeating instance shapes along a curve

Post by Manticor » 26 Nov 2014, 17:17

Hey Mathaeus thanks for the heads up .
I would be very interested in the strand tools addon if you have it.I cant seem to find it on the web .
Great image by the way , love the style

User avatar
Hirazi Blue
Administrator
Posts: 4934
Joined: 04 Jun 2009, 12:15

Re: creating repeating instance shapes along a curve

Post by Hirazi Blue » 26 Nov 2014, 17:48

I think Mathaeus means the mt_strandnodes addon. Search for "mt_strandNodes" or better still the "ICE Tutorials" (IIRC it includes the mt_strandnodes and lot of additional goodies) over at rray.de, but make sure you get them from rray's "local backup" as the external links probably won't work anymore. I believe you wrote somewhere you're on 7.01. That's good because I think this wasn't really compatible with SI2010 and onwards.
...

User avatar
FXDude
Posts: 976
Joined: 19 Jun 2012, 21:59

Re: creating repeating instance shapes along a curve

Post by FXDude » 26 Nov 2014, 18:10

Mathaeus wrote: necklaces in this pic belongs to this ICE node.
Woah!! :-o I think I remember seeing that, but still not any less blown away (!) :ymapplause:

User avatar
FXDude
Posts: 976
Joined: 19 Jun 2012, 21:59

Re: creating repeating instance shapes along a curve

Post by FXDude » 26 Nov 2014, 18:35

I also recall a duplicator that could do that, not sure if it worked under V7, I'll look around and repost.

Manticor
Posts: 160
Joined: 09 Jun 2011, 22:41

Re: creating repeating instance shapes along a curve

Post by Manticor » 26 Nov 2014, 20:40

wow so much help .thanks guys

User avatar
Mathaeus
Posts: 1745
Joined: 08 Jun 2009, 21:11
Location: Zagreb, Croatia

Re: creating repeating instance shapes along a curve

Post by Mathaeus » 26 Nov 2014, 21:26

there's mt strand nodes 2.6 addon in attach - this one works with SI 7.01 or 7.5. Setup for distributing different instances on curve is here. Perhaps you'd like to take look at setup, as "mt strand fitting" samples an array of positions, not curve itself, so there's need for few steps to get the complete thing form curve to instances. Of course install the plugin before do anything with setup.
If you'll need variances, like different instances of different size or like, don't hesitate to ask.
You do not have the required permissions to view the files attached to this post.

Manticor
Posts: 160
Joined: 09 Jun 2011, 22:41

Re: creating repeating instance shapes along a curve

Post by Manticor » 28 Nov 2014, 00:03

many thanks matheus .This is a great help.