auto break instance question

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
furushil
Posts: 408
Joined: 12 Feb 2012, 21:02
Location: Berlin
Contact:

auto break instance question

Post by furushil »

I have a sequence on 2s and want to paste a brush in place on several instances. I select the instances and paste in place but TVPaint breaks the instances so that the sequence is on 1s.
The same thing happens when I want to clear some instances in a sequence (on 2s). When I select the section and hit backspace TVPaint breaks the instances.

The auto break instance option in the program is off so I don't know why it is doing that.
Does anyone know how I can clear or paste without breaking the instances?

I know that you could mark some frames delete one exposure, paste the brush and then add one exposure again but it is not a good solution for me.
MAC OS 12.6.2 - TVpaint 11.7.1 PRO 64bit, Wacom Intuos Pro
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: auto break instance question

Post by ZigOtto »

- to clear without breaking instance(s), use the "Clear Instance" button from the Animator Panel
(the one with a white square as icon) ;

- to Paste-in-Place a customBrush on several instances without breaking them, well, afaik, we have actually
2 ways, the easiest consists to embed these following 2 commands in a custom button :

Code: Select all

Tools: Custom Brush Stamp in Place
Layers: Recompute Exposures
of cource, button assignable to a hotkey .

the other way is script based button,
tell me if you're interested, the script works fine here, but I can't guarantee for others
(computer/OS/tvpa versions/...)
User avatar
furushil
Posts: 408
Joined: 12 Feb 2012, 21:02
Location: Berlin
Contact:

Re: auto break instance question

Post by furushil »

ZigOtto wrote:- to clear without breaking instance(s), use the "Clear Instance" button from the Animator Panel
(the one with a white square as icon) ;
This is somehow not working for me. When I select 4 frames with 2 instances hold for 2 frames and click on the white square, it breaks the instances and I get 4 instances.
I try to check and uncheck the "auto break instance" option (Image->Instances->auto break instances) but it has no difference.

Unfortunately, I cannot use your other suggestion. I have to paste something very often and it is always a different brush (cut-brush).
MAC OS 12.6.2 - TVpaint 11.7.1 PRO 64bit, Wacom Intuos Pro
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: auto break instance question

Post by ZigOtto »

furushil wrote:This is somehow not working for me. When I select 4 frames with 2 instances hold for 2 frames and click on the white square, it breaks the instances and I get 4 instances.
I try to check and uncheck the "auto break instance" option (Image->Instances->auto break instances) but it has no difference.

can you check your "white square" button by RMB-edit ...
the embedded command should be

Code: Select all

tv_cmd heads tv_clear
if not, LMB-clic on the line, Type Script's Command ... and copy/paste the command above,
name it f.i. "Clear Instances", then assign it to your Backspace Key.
clearInstances.png
clearInstances.png (10.92 KiB) Viewed 21574 times
furushil wrote:... Unfortunately, I cannot use your other suggestion. I have to paste something very often and it is always a different brush (cut-brush).
:?
have you created the custom button as I suggested in my previous post ?
once done and assigned to a hotkey, and whatever your custombrush and the frequency you'll use it,
this [Paste-in-Place+Recompute] command should work for any tvpaint user,
... or am I missing something in your specific workflow ...?

alternatively, you can get the same result without creating this custom button,
directly assign the 2 commands to a choosen free hotkey,
(Preference/ Keyboard Shorts Configure ... assign command1 + Ctrl-assign command2)
stampinplace+recompute.png
stampinplace+recompute.png (23.8 KiB) Viewed 21575 times
User avatar
furushil
Posts: 408
Joined: 12 Feb 2012, 21:02
Location: Berlin
Contact:

Re: auto break instance question

Post by furushil »

ZigOtto wrote: can you check your "white square" button by RMB-edit ...
the embedded command should be

Code: Select all

tv_cmd heads tv_clear
ok, I checked that and my panel said this:
Bildschirmfoto 2014-04-13 um 13.17.15.png
Bildschirmfoto 2014-04-13 um 13.17.15.png (17.24 KiB) Viewed 21573 times
so I made a new button with your code and it worked, thank you!

I am actually really scared of code :oops: because I think I could break the whole program or the program will run slower if I do something wrong.
I misunderstood you and thought you told me to assign the code to a custom brush not button.Now I tried your paste in place solution but the "Recompute Exposures" seems to get rid of the selected instances. When I hit the button the instances disappear.
MAC OS 12.6.2 - TVpaint 11.7.1 PRO 64bit, Wacom Intuos Pro
User avatar
furushil
Posts: 408
Joined: 12 Feb 2012, 21:02
Location: Berlin
Contact:

Re: auto break instance question

Post by furushil »

I tried out the clear instance button again and realized that this is not a good solution for me.
Because now it always only clears the heads.

Let me explain:
I think the "clear the instance" button and "paste in place" (and other things) should be dependent on the "auto break instances" setting (Image->Instances->auto break instances). I always use the shortcut for "auto break instances" because sometimes I need to break them and sometimes not.
If I embed the command "tv_cmd heads tv_clear" it just switches the setting and it means that I would need two different buttons, one with clear the instances and break them and one with clear the heads.
Wouldn' t it be just logical to make everything depend on the auto break setting?
MAC OS 12.6.2 - TVpaint 11.7.1 PRO 64bit, Wacom Intuos Pro
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: auto break instance question

Post by ZigOtto »

furushil wrote:...
Wouldn' t it be just logical to make everything depend on the auto break setting?
yes, agreed, and the [auto-break Instance] behavior have been debated 1 year ago or so,
... particularily about the Transform tool behavior, which had changed from V9.x to v10.x
viewtopic.php?f=21&t=6705&start=15
I think (I hope ?) this request is already on the "To Do" list of the dev. team,
[Clear] and [Stamp-in-Place] shoud work in respect of the user's AutoBreak Setting as well,
and of course feel free to add your voice to this (important to my eyes) feature request thread. :)
for the time being, you have to set 2 different hotkeys, one breaking, the other not breaking,
f.i., Backspace to "Clear&Break", Shift Backspace to "Clear without Breaking",
in my worflow, I am personally using at 99% the "Clear-on-Heads-only" command, so I need only one shortkey,
and when I (rarely) need to Clear&break, I just have to do one more clic on the "Exposure Break" button of the Animator Panel,
or to hit my [Layer: Exposure Break] shortkey.
User avatar
furushil
Posts: 408
Joined: 12 Feb 2012, 21:02
Location: Berlin
Contact:

Re: auto break instance question

Post by furushil »

Ok, I see that it has been discussed before.
Maybe both threads can be merged then.
I also think the "auto break instance" setting should "rule them all".
MAC OS 12.6.2 - TVpaint 11.7.1 PRO 64bit, Wacom Intuos Pro
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: auto break instance question

Post by Peter Wassink »

a students just asked me: he wants the free transform to also break the instance,
why is it that only the pan breaks but transform and warp don't "listen" to the autobreak setting?

sorry if its a double question i haven't much time to dive in the thread
#edit#
well... i just did dive in and its a little confronting to see the state of my memory :? :wink:
viewtopic.php?f=21&t=6705&start=15

but it seems the request still stands
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: auto break instance question

Post by Fabrice »

yes, we still have something in the todo list about breaking instances with the transform tool (& other tools).
we didn't forget it.
Fabrice Debarge
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: auto break instance question

Post by ZigOtto »

Fabrice wrote:yes, we still have something in the todo list about breaking instances with the transform tool (& other tools).
we didn't forget it.
8)... and please, don't forget "& other tools", such as "Clear" or "Stamp-in-Place",
which should work "by default" in respect of the user "AutoBreak" setting,
(as long as the user decides differently). :)

nothing to do with the Auto-Beak setting, but about Stamp-in-Place,
I've noticed something I consider as a misbehavior :
- cut a custombrush,
- go to another frame in the timeline and [Stamp-in-Place] it,
- [Undo], select a range of frames and [Re-Apply]
unfortunately, it doesn't stamp the current custombrush in place along the selected range of frames ...
imo, it should do exactly as it does when we stamp it "manually" (with 1 LMB-clic in the project preview).
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: auto break instance question

Post by Fabrice »

... and please, don't forget "& other tools", such as "Clear" or "Stamp-in-Place",
yes, I was referring to those ones, among others.
Fabrice Debarge
Post Reply