Clones Various objects with the same gap between them ?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  10 October 2011
Originally Posted by Aurety:
EDIT : Al'em works in C4D R13 ?? Thanks to pointing that.


Yes, it does !
__________________
Facebook Personal Page:
TiagoSaraivaPhotography
 
  10 October 2011
Originally Posted by Aurety: I think it's a job for a new effector, no ??

I have such an effector in development at the moment. Here's a quick preview.

Did you find a solution to your current problem?
 
  10 October 2011
Hi Darter !! Not really but it was a question on our frenchcinema4d forum and I was curious to see what the semi-gods here have to say about that.

OMG, your effector looks really good ! Just perfect for the task.

I always thought that your are a precious guy inside this community, like some others here.

Hope you will release it for us, and maybe it will be good to think about the way to receive donations. Since years I used various files you provided for my needs without contribution. It's a shame !
__________________
Frenchcinema4D Moderator http://www.frenchcinema4d.fr
my website : http://www.lev-communication.fr
Kamigaz® Project on : Pinterest
 
  10 October 2011
Originally Posted by Darter: I have such an effector in development at the moment. Here's a quick preview.

Did you find a solution to your current problem?


How awesome is that, great job Darter!
Do you have a timeframe for a release?
 
  10 October 2011
Thanks for your kind words Aurety. I've gained a lot through the generosity of others here and have been happy to make the occasional contribution.

I plan to release this as a commercial plugin but will keep developing smaller, free tools.

Thanks also typografschaft. At this stage I'll just say that it's being actively developed and give a timeframe closer to release. Core functionality is working reliably but there's more to be done.
 
  10 October 2011
mmm, i get a 404 on that dropbox-link,
will try again later.

been breaking my head over this thread a few times in the past few days myself.

So is this Gap Effector BoundingBox based ?

d
 
  10 October 2011
That looks great Darter, would your plug-in work with a grid array as well?
__________________
www.marshalstudios.com
 
  10 October 2011
Originally Posted by douwe: mmm, i get a 404 on that dropbox-link,
will try again later.


looks fantastic
 
  10 October 2011
Thanks for the feedback.

Originally Posted by douwe: So is this Gap Effector BoundingBox based ?

It's currently based on the source object bounding boxes. The next update will individually calculate the bounds of each rotated clone along its spline point tangent.

Originally Posted by marshalartist: That looks great Darter, would your plug-in work with a grid array as well?

As most requests have been for uniform spacing along splines, I'm starting with this and will then investigate other modes.
 
  10 October 2011
Originally Posted by Darter: I have such an effector in development at the moment. Here's a quick preview.



DO WANT! .
 
  10 October 2011
Originally Posted by Darter: I have such an effector in development at the moment. Here's a quick preview.

Did you find a solution to your current problem?


That looks GREAT. Would it work by any chance with a grid arrangement of clones (XZ or XYZ?) Or would it only work linearly along a path or direction? (which is still very useful!)

Definitely one of those problems that crops up from time to time.

Thanks Darter
 
  10 October 2011
Originally Posted by JoelOtron: That looks GREAT. Would it work by any chance with a grid arrangement of clones (XZ or XYZ?) Or would it only work linearly along a path or direction? (which is still very useful!)



SurfaceSpread has a setting called minimum distance that is very helpful but it only clones on surfaces. Of course it would be great if had a minimum gap setting.

The minimum distance setting takes a lot of time calculating as expected.

Your effector looks great Darter!
__________________
Cinema 4D STUDIO Bundle | Photoshop | Illustrator | Shake | AE
 
  10 October 2011
Hmm, I was pointed in the direction of this thread. I made a small COFFEE effector years ago that did this sort of thing.

I just found it again, fixed some errors with syntax changes for constantsin R13 (TRUE instead of true) and it seems to work again. It's called the Armature Effector and you can have fun with it here:

The code is simply :


    main(doc,op)
    {
    	var md = GeGetMoData(op);
    	if (!md) return FALSE;
    	var cnt = md->GetCount();
    	var marr = md->GetArray(MODATA_MATRIX);
    	var fall = md->GetFalloffs();
    	var i = 0;
    	var mat = new(Matrix),
    			ccmat = new(Matrix),
    			ddmat = new(Matrix),
    			ttmat = new(Matrix);
    	
    	//Get the userdata
    	var pos = op#ID_USERDATA:1,
    			sca = op#ID_USERDATA:2,
    			rot = op#ID_USERDATA:3;
    
    	for (i = 0; i < cnt; ++i)
    	{
    		//Generate the overall transform matrix
    		ttmat->SetRotHPB(rot * fall[i]);
    		ttmat->SetV0(pos * fall[i]);
    		ttmat->SetV1(ttmat->GetV1() * Mix(1, sca.x, fall[i]));
    		ttmat->SetV2(ttmat->GetV2() * Mix(1, sca.y, fall[i]));
    		ttmat->SetV3(ttmat->GetV3() * Mix(1, sca.z, fall[i]));
    
    		//Put the transform into the clones own space for "children" clones
    		marr[i]->CopyTo(ddmat);
    		ddmat->Invert();
    		ddmat->MulM_L(ttmat);
    		ddmat->MulM_L(marr[i]);
    		
    		//Multiply by the acucmulated transform
    		marr[i]->MulM_L(ccmat);
    		//Multiply by the current transform
    		marr[i]->MulM_R(ttmat);
    	
    		ccmat->MulM_R(ddmat);		//Accumulate the transformation
    	}
    	md->SetArray(MODATA_MATRIX, marr, FALSE);
    	return TRUE;
    }
    


And it requires some userdata settings that you'll find in the file (position, scale, rotation vectors). It's not exactly correct, but you could abuse it further with some randomization to control width of the objects in there instead of the accumulative single value. That should give you a basic sort of maintain distance effect (provided you're fine with that approach).
Attached Files
File Type: zip transform.zip (103.7 KB, 89 views)
__________________
The Third Party | Homepage | My Reel
"You need to know what you're doing before you start, and to start because you need what you're doing."

Last edited by Per-Anders : 10 October 2011 at 09:47 PM.
 
  10 October 2011
Originally Posted by JoelOtron: That looks GREAT. Would it work by any chance with a grid arrangement of clones (XZ or XYZ?) Or would it only work linearly along a path or direction? (which is still very useful!)

Thanks Joel. I'm starting with arrangement along splines but will also be investigating other modes.

Originally Posted by Jorge Arango: SurfaceSpread has a setting called minimum distance that is very helpful but it only clones on surfaces. Of course it would be great if had a minimum gap setting.

Thanks for the info, sounds interesting. I'll have to take a look at SurfaceSpread.
 
  07 July 2012
Just wondering if any progress has been made on this, Darter?
__________________
----end of line
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:21 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.