Grid & Guideline save

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
KF | Animation
Posts: 2
Joined: 26 Jan 2018, 18:27

Grid & Guideline save

Post by KF | Animation »

Hi there,
i am using TVP 11.0.8 and i am looking for a possibility to save my grid settings.
I ad in the guideline panel a grid and do some adjustments. Everthing is fine.
But if I open a new dokument, i have to do it again. The same adjustments for each new dokument.
Does somebody know how can i save this grid adjustments to ad my own grid in a new dokument?

Thank you.
Jens.
Svengali
Posts: 1550
Joined: 28 Dec 2006, 10:08

Re: Grid & Guideline save

Post by Svengali »

One way is to make a button with the following embedded script. Note that you will have to enter your own Xcell and Ycell dimensions.

Code: Select all

Xcell = 8
Ycell = 6
msg =  Xcell " by " YCell " grid|display|erase"
tv_Request msg
IF result = = 1
  tv_GetWidth
  Width = result
  tv_GetHeight
  Height = result
  GW = Width / Xcell
  GH = Height / Ycell
  tv_GuideLineAdd GRID X 0 Y 0 W GW H GH 
ELSE
  tv_GuideLineRemove ALL GRID
END
sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
Animationriver
Posts: 258
Joined: 02 Jul 2017, 09:04
Location: Moscow
Contact:

Re: Grid & Guideline save

Post by Animationriver »

Svengali wrote: 01 Feb 2018, 20:17 One way is to make a button with the following embedded script. Note that you will have to enter your own Xcell and Ycell dimensions.

Code: Select all

Xcell = 8
Ycell = 6
msg =  Xcell " by " YCell " grid|display|erase"
tv_Request msg
IF result = = 1
  tv_GetWidth
  Width = result
  tv_GetHeight
  Height = result
  GW = Width / Xcell
  GH = Height / Ycell
  tv_GuideLineAdd GRID X 0 Y 0 W GW H GH 
ELSE
  tv_GuideLineRemove ALL GRID
END
sven
Hello! And how to set black color and disconnected magnet?
Thanks!
www.youtube.com/c/animationriver
MAC OS Sierra 10.12.6 64 bits , MacBook Pro (Retina, 15-inch, Mid 2014)
2.8 GHz Intel Core i7, 16 GB Memory , TVPaint PRO 11.5.2 64bit
NVIDIA GeForce GT 750M 2048 Мb
Wacom Cintiq 27 QHD Touch - Wacom Intuos Pro 5 - driver version 6.3.37-2
KF | Animation
Posts: 2
Joined: 26 Jan 2018, 18:27

Re: Grid & Guideline save

Post by KF | Animation »

Hi Sven,

thank you so much. This is great. It works perfect.
But there is no other way to save a grid or any other guidelines (marks, circle, vanish point etc.) directly in the guideline panel?

Thanks a lot,
Jens.
Svengali
Posts: 1550
Joined: 28 Dec 2006, 10:08

Re: Grid & Guideline save

Post by Svengali »

All of the commands for Guideline management can be found >>HERE<< in the Wiki for TVPaint George...

Specifically, check out commands: tv_GuidelineSnap and tv_GuidelineColor.

sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
Animationriver
Posts: 258
Joined: 02 Jul 2017, 09:04
Location: Moscow
Contact:

Re: Grid & Guideline save

Post by Animationriver »

Thank you! You are a wonderful professional and showed where to look, in order to learn. :D
I do not understand how to make this button smart, but sooner or later I'll understand.
But today. :D I do not know the iterations that seem very simple for you personally.
My attempt was recorded on video. 8)
I want to change the color of the guiding lines to black. And cancel the magnet. :lol:
Attachments
Guideline georg.mp4
(26.88 MiB) Downloaded 1308 times
www.youtube.com/c/animationriver
MAC OS Sierra 10.12.6 64 bits , MacBook Pro (Retina, 15-inch, Mid 2014)
2.8 GHz Intel Core i7, 16 GB Memory , TVPaint PRO 11.5.2 64bit
NVIDIA GeForce GT 750M 2048 Мb
Wacom Cintiq 27 QHD Touch - Wacom Intuos Pro 5 - driver version 6.3.37-2
Svengali
Posts: 1550
Joined: 28 Dec 2006, 10:08

Re: Grid & Guideline save

Post by Svengali »

I've modified the script adding the tv_GuideLineSnap command and the tv_GuideLineColor command.

Code: Select all

Xcell = 8
Ycell = 6
R = 0
G = 0
B = 0
A = 255
msg =  Xcell " by " YCell " grid|display|erase"
tv_Request msg
IF result == 1
  tv_GetWidth
  Width = result
  tv_GetHeight
  Height = result
  GW = Width / Xcell
  GH = Height / Ycell
  tv_GuideLineAdd GRID X 0 Y 0 W GW H GH 
  tv_GuideLineSnap GRID OFF
  tv_GuideLinecolor GRID R G B A
ELSE
  tv_GuideLineRemove GRID
END
Everyone finds their own way to scripting, usually by reading docs like those found in the Wiki, watching tutorials and looking at scripts written by others to decipher what each command line does. GEORGE scripts are totally accessible, written in plain text form. Start by making simple changes in a script like this one: Try to make a new button that generates a red grid and another button that generates a green grid with different dimensions. You can make another button with a one-line embedded script that will let you Toggle the Snap-to-Grid-state on and off (hint instead of using ON or OFF, use TOGGLE as described in the documentation). Experiment - its hard to break anything with GEORGE scripts and GEORGE will often tell you exactly which line in your script is the problem. You'll quickly understand how it works. Where it takes you is up to you.

With Guidelines, the interface is wonderfully designed for interactive use. But GEORGE provides GuideLine script commands that users can combine in scripts, for example, to store and retrieve user defined-grid dimensions, user-defined grid states like color and snapping, etc.

sven
TVP Pro 11.0.10-64bit Win10 - 64GB ram -2TB HHD - 256GB SSD - Wacom Cintiq 16, driver 6.3.41-1
Android Tablet: rel. 11, Samsung Galaxy Note10.1 - 32GB with microSD 32GB
Android Tablet: rel. 11.5, Samsung Galaxy Tab S7plus - 128GB with microSD 64GB
User avatar
Animationriver
Posts: 258
Joined: 02 Jul 2017, 09:04
Location: Moscow
Contact:

Re: Grid & Guideline save

Post by Animationriver »

This is a kind act from your side. Thank you, Sven!
Unfortunately I am an animator and my brain perceives everything only through video and video lessons. We live in a new era. It's very difficult for me to become a programmer, even if George's language is very simple. But I'm very happy that you are at this forum! And you're very responsive.
You made a button that I dreamed about for a very long time.
Thanks again!
Attachments
Снимок экрана 2018-02-04 в 13.12.41.jpg
16-9 Guideline.tvpx.zip
(2.8 KiB) Downloaded 1131 times
www.youtube.com/c/animationriver
MAC OS Sierra 10.12.6 64 bits , MacBook Pro (Retina, 15-inch, Mid 2014)
2.8 GHz Intel Core i7, 16 GB Memory , TVPaint PRO 11.5.2 64bit
NVIDIA GeForce GT 750M 2048 Мb
Wacom Cintiq 27 QHD Touch - Wacom Intuos Pro 5 - driver version 6.3.37-2
User avatar
Animark
Posts: 505
Joined: 16 Oct 2008, 15:26
Location: Berlin

Re: Grid & Guideline save

Post by Animark »

KF | Animation wrote: 01 Feb 2018, 14:04 But if I open a new dokument, i have to do it again. The same adjustments for each new dokument.
Does somebody know how can i save this grid adjustments to ad my own grid in a new dokument?
Another way could be to save one empty project with your grid settings and use it as a base for new projects (open and save under new name). I am not sure, if the grid-settings will stay when converting the project to a new size. But let's see. I think this is also the one and only way to save a library with different stuff (color-sheets, modellsheets, ...) when being too lazy to reproduce the lib with every new project.

:)
TVPaint 10.5.7 - Win10/64
TVPaint 11.0.8 - Win10/64
TVPaint 11.0.8 - Win10/64 (Wacom Companion 2)
User avatar
NathanOtano
Posts: 1181
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Grid & Guideline save

Post by NathanOtano »

@TVP team : Could be nice to be able to save some presets and move/scale all guidelines together (to move those presets or just in general). Copy Paste beetween projects could be nice also
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
Elodie
Posts: 13913
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: Grid & Guideline save

Post by Elodie »

NathanOtano wrote: 04 Feb 2018, 22:30 @TVP team : Could be nice to be able to save some presets and move/scale all guidelines together (to move those presets or just in general). Copy Paste beetween projects could be nice also
In the To do list already :)
User avatar
Peter Wassink
Posts: 4270
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: Grid & Guideline save

Post by Peter Wassink »

haha...
i was gonna ask how to copy/export a guideline stack to another project...
and that i forgot how to do that...

it turns out i forgot you can't :P
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
Post Reply