"source continuously spins" filter

prester_john

New Member
Hi, would it be possible for someone to make a simple Lua script that just makes the affected source spin continuously, with a slider for speed? I want to put it on my webcam with some other filters to make custom trippy visuals.
 

Exeldro

Active Member
You can use Move Source filters of the Move Transition plugin to do that, the speed can be changed by changing the duration of a move.
 

prester_john

New Member
Cursory overview of this plugin made me think that having a continuously spinning webcam this way would require continuously triggering scene transitions, which I can't do while I'm doing the other stuff I want to do on stream.
I think it might be possible by making a loop with an additional automatic scene transitions plugin but it seems like a very unnecessarily complicated and potentially glitchy or laggy way of doing something which should only really require one slider.

Also doing it like this prevents me from having multiple things spinning at different speeds, which I'm not sure I'll actually end up doing but it would be nice to be able to experiment with that.

Thank you for the work you've done for the community btw
 

Exeldro

Active Member
If you use the move source filter and not the move transition, you don't need scene transitions and every source can have it's own timing
 

prester_john

New Member
Hey this is working!
Can't believe I scrolled past this a bunch of times, I didn't even realize that Move Transition and Move Filter were different.
 
Can you share what settings was use to make it spin continuously? Mine spins to 360 spin clockwise but then it spins backward everytime it loops back
 
actually I found this script in the forum. This spins and stops via hotkey. Unfortunately I cannot get it to work when the source is inside a group

 

forwarduk

New Member
been trying to make my cams spin on constant rotation for ages now. I use the Move Source filter on a camera source, and do this..

Move Source 1 - base start
Move Source 2 - rotate 360

"On Next Move" go to Move Source 1, then Move Source 2 >1 in a loop.
it doesn't spin continously, I don't think there is a way to do this.

However, I would be lost without the Move Transition plugin, Great job Exeldro!
 

LordAdrøx

New Member
Has anyone managed to get something spinning continuously? I have it spinning from North > East > South > West but when it goes back to north it reverses its rotation even tho rotating normally would be a shorter travel time. I have even tried making a second north transition but it still goes reverse. Any ideas?
 

dighawaii

New Member
Hey guys, I found the thread and managed to get Move Source to spin a source continuously by chaining 1-2-1-2... Great!
Only problem is that the top leftmost is used as the anchor point, while I need the center to be the rotational point.

Tinkered around and couldn't find a cure.

Any idea?
 

saltyd

New Member
Hey guys, I found the thread and managed to get Move Source to spin a source continuously by chaining 1-2-1-2... Great!
Only problem is that the top leftmost is used as the anchor point, while I need the center to be the rotational point.

Tinkered around and couldn't find a cure.

Any idea?
Right-click on source - Transform - Edit Transform - then change the positional alignment dropdown box :)
 

Samikyu

New Member
I managed to make this somewhat work for the duration I needed it, I still do not have a way to have it spin infinitely though.
  1. Prep the source by right clicking on it and going to Transform > Edit Transform, set the Positional Alignment to Centre.
  2. On the scene, add a filter for Move Source and leave that as the default starting point.
  3. Add another Move Source, then on the Transform set the rot to 360.0 (for clockwise) or -360.0 (for counter clockwise). That is for one full rotation. If you want to increase the number of rotations, increase or decrease it by multiples of 360. For example 1080.0 rot will make it do 3 full rotations clockwise. Change Easing to No Easing, and set your Custom Duration to adjust how slow it rotates.
  4. Activate the 2nd Move Source filter to start the animation sequence.
  5. Activate the 1st Move Source filter to reset the rotated source if needed.
 

so_lo

New Member
For those that may still need assistance with this, I was able to create an infinite rotation with the use of a Move Value filter and a couple Move Source filters. This may not be the best or most efficient setup, but it worked for me. I've named my filters as follows, but please feel free to give them more meaningful names to you if you try this out.

Move Value
Move Source - Reset
Move Source - 360

1. First, make absolutely sure the source (or group) you want to apply rotation to is in it's starting position within the scene you'll be adding the filters above too. In this example, my source is set to a Position of 0 degrees with Positional Alignment set to Center within the Transform->Edit Transform window.
2. Create the single Move Value and two Move Source filters listed above within your scene.
3. Edit the Move Source - Reset filter with the following:
a. Select the Source object you want to rotate from the dropdown
b. Custom Duration = 0ms
c. Easing = No easing
d. Next Move = Move Source - 360
4. Edit the Move Source - 360 filter with the following:
a. Select the same Source object you chose in 2a above
b. Custom Duration = 10000ms (This can be changed and will be your final rotation speed)
c. Easing = No easing
d. In the Transform text field, find rot: 0.0 within the string of text and change the value from 0.0 to 360.
e. Next Move = Move Value
5. Edit the Move Value filter with the following:
a. Filter = Move Source - Reset
b. Move Value Type = Settings
c. Select Get Values, this should populate your starting position values you set in step 1.
d. Rotation = 0.00
e. Custom Duration = 0ms
f. Easing = No easing
g. Next Move = Move Source - Reset
6. If all is well, you can start the animation from the Move Value filter by clicking its eye to activate the sequence.

The gist of what's happening is that Move Value is predefined with the starting positional info of your source so that it can apply this data to the Move Source - Reset filter instantly which then instantly triggers Move Source - 360 to play the rotation which then triggers Move Value and starts the process over infinitely. Utilizing Move Value made it so I didn't have to see a return rotation causing a back and forth effect since the position is now moved instantly back to starting position. Hope this can at least help someone get a little closer to their end result. Thanks to everyone for your input and to @Exeldro for your fantastic work.
 
Top