Register Latest Topics
 
 
 


Reply
  Author   Comment  
Bishka

Member
Registered:
Posts: 34
Reply with quote  #1 

When it comes to Lua Script Filters the Rotate filter is the only way to go but it is often not up to the job.So, would it be possible for the Rotate filter to have an extra slider for fine control of the rotation.
Because each slider can only go from 0 to 100 exact rotations less than 22.5 deg. are not possible ( you can't have 12.25 or 6.125 for example) .

Regards Bishka
0
Lorenzo

Avatar / Picture

Member
Registered:
Posts: 74
Reply with quote  #2 
Hi Bishka,
 I can only find a rotate filter under Filters>Distort>Rotate.
But found no Lua Script Filters that Rotate Image.
If were talking about the same filter I can say this;
it starts at 50% 0%=360 degrees of Rotation Left.
100%=360 degrees of Rotation Right.
The 50% = percent as opposed to degrees.
360/50=7.2 degrees of incline for 1% of movement.
I doubt that Ken would change Percents for Degrees.
It does not fit into the 0-99 format that is set.
But if we could substitute 50% to be 0%;
whit 100% left - to 100% Right to me that
would be more in sink whit all the other tools & Effects
that are already in use. Whit the same %=3.6 degrees of change.
And it would be nice to add Isolate Image Box.
0
kcarlino

Avatar / Picture

Administrator
Registered:
Posts: 421
Reply with quote  #3 
I'm a bit confused because filter sliders give a resolution tenths of a percent (1000 positions). 

That said, mechanical fine control in TB was never a focus (obviously) and instead the focus almost always on free form usage. 

Do make sure you are accessing decimal position for the filters.

Also explore the use of the Paste tool which also has rotation capabilities. 

Ken
0
Bishka

Member
Registered:
Posts: 34
Reply with quote  #4 
Hello Ken,
Sorry for the confusion.
The total slider range is 0 to 100in 0.1% steps (Total 1000 steps), the fullrotation is -360 to +360 deg. With  500steps for every 360deg of rotation one quickly runs into problems:-

50% = 0 deg (rotation)..No problem
75% = 180deg              No problem
62.5% = 90 deg            No Problem
Any further division becomes problematic, for example :-
56.25% = 45 deg          Not Obtainable
53.125%= 22.5 deg       Not Obtainable.

While I would use the Past tool under normal circumstances, the Rotate filter is my only option within a script filter.
Knowing nothing about the internals of TB and not being a programmer, I have no idea as to what is or is not possible and/or practical. I just ask the question and keep my fingers crossed [biggrin]

Bishka



0
kcarlino

Avatar / Picture

Administrator
Registered:
Posts: 421
Reply with quote  #5 
Hi Bishka,

The main challenging part is for maintaining backward compatibility. I'm looking into solutions now and will let you the results of my think. 😉

Ken
0
Bishka

Member
Registered:
Posts: 34
Reply with quote  #6 
Thank you Ken.

Although it would be nice to be able to dial in an exact rotation, I have a suspicion that - that would need a complete rewrite of the filter. I wonder if rather than try and rewrite the whole thing, if it would be easier to add some extra lines of code that allow and additional rotation of, say +/- 10deg in 0.01deg steps along with 'Fine Control' slider? I would have thought that- that would offer almost fool proof backward compatibility and would still work with any saved presets and last settings (TB seems to just ignore any sliders not part of the original preset)

Anyway: If it can be improved upon, even if its not an ideal soloution will be gratefully received.


Bishka 
0
kcarlino

Avatar / Picture

Administrator
Registered:
Posts: 421
Reply with quote  #7 
Hi Bishka,

The Rotation filter itself shouldn't need to change. It's more about the software interfaces to different parts of the program and also the user interfaces. 

Ken
0
kcarlino

Avatar / Picture

Administrator
Registered:
Posts: 421
Reply with quote  #8 
Hi Bishka, 

There will be some improvements in the next release for rotate, at least in the UI. However, I looked at this specific rotate filter library that is being used and is doesn't support fractional degrees. 

Here is an animation of the update. 

[a7a6f3e082aa8834b2397dfca0322370] 

Internally, I made changes so the 6 sliders can be defined with a start and end scale as well as number of decimal places and units. Filters that use these updated attributes will end up getting versioned. As shown above with the Rotate v2.

I didn't expose these attributes to Lua in the @TBCONFIG commands. However, if it would help in a big way I could add a new @TBCONFIG type to accept these. It's up the Lua script to interpret the values. 

I'm currently not planning to go through all the filters and update, but if there are some others that are screaming for an update let me know.

Ken
0
Lorenzo

Avatar / Picture

Member
Registered:
Posts: 74
Reply with quote  #9 
Hi Ken,  
    Post #2 I was just trying to establish if Bishka was talking about
Filters>Distort>Rotate. As he labeled it as  Lua Script Filters the Rotate filter.
An assumed it may very well had made his own. Knowing of his Love of 
making Filters. I did not get into the finer details of 1/10 increments.
Sorry to confuse anyone over that. That being said I shall present my view.
_________________________________________________________________
I would like to see a change in the Rotate Filter so that 100%= 360 Degrees.
It one makes most sense that 100% Equalizes the Sum of the Full Rotation.
As well as is twice as accurate as using 50%. An is the 1000 to 1 ratio.
That you had mentioned in post #3. Due to my poor description.
At that rate  0.1 would equal .36 of a degree. That would mean the most
you would ever be out of sink in any given polygon would be .2 degrees.
It be all but impossible to see that unless your talking giant size.
By the way Ken I like your new Rotate V2. But please 100% = 360.

 

0
kcarlino

Avatar / Picture

Administrator
Registered:
Posts: 421
Reply with quote  #10 
Hi Lorenzo, 

The Rotate v2 doesn't use percentages and is limited to full degrees. That limitation is the lower level of the rotate filter library being used. It could be changed but that may be additional effort and will save that for a separate request.

Thanks,
Ken
0
Lorenzo

Avatar / Picture

Member
Registered:
Posts: 74
Reply with quote  #11 
Hi Ken,
  I only remarked that V2 filter was interesting.
And the closing words of 100%=360 degrees.
Was in respect to the present Rotate Filter.
Could you not make 100% full circle????
Setting 50% at center 50% left or Right
50% for full circle makes no sense to me.
Plus 100% is far more accurate.
0
kcarlino

Avatar / Picture

Administrator
Registered:
Posts: 421
Reply with quote  #12 
Hi Lorenzo,

Thanks for the suggestion! The behavior of existing filters can't be changed because it can break compatibility of scripts, presets and solutions. 

Ken
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.