Find Target, Script operator and Spin ...


#1

Hello :slight_smile:

I’ve particles, targeting objects to be placed exactly like them, using a Script Operator like that:


 on ChannelsUsed pCont do
 (
 	pCont.useInteger= true
 	pCont.useVector = true
 )
 
 on Init pCont do 
 (
  
 )
 
 on Proceed pCont do 
 (
 	count = pCont.NumParticles()
 	for i in 1 to count do
 	(
 		pCont.particleIndex = i
 		pCont.particleInteger = 1 + (mod pCont.particleID $Find_Target_01.target_Objects.count )
 		pCont.particleVector = [0,0,0]
 	)
 )
 
 on Release pCont do 
 (
  
 )
 

Everything is fine so far. Things are getting more complicated (for me), if I add a spin before they get placed … whether they keep on turning or they stop turning, but in a random rotation state. Do you know if/how it would be possible to get the particles fit to the exact rotation state of the aimed objects ?

Please check the enclosed stripped-down scene …

Many thanks in advance !!

Regards.


#2

Anyone, please ? I guess it has to be done in the script operator, but no idea how …

Thanks :wink:


#3

You can easily do it with box#3 and a goto rotation test. I tried a quick script approach but I am a little too scriptarded today.


#4

Hi, I posted a topic at the Orbaz forums that relates to using the Find Target + Go to Rotation as Johnny suggested. That might help guide you in the right direction. :smiley:


#5

Oh cool, thk you guys, I’ll check that !

Cheers.


#6

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.