» AntTweakBar
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

AntTweakBar

plugin
Credits: mino, The AntTweakBar library: Philippe Decaudin, and this forum for reference C# code.

about

It's finally here! New GUI plugin for vvvv is introduced.

AntTweakBar is a simple and easy-to-use GUI library for 3D graphic applications.
You can add/remove variables and create group few steps.

NOTE:
This plugin is under development. any requests and bug reports welcome.

Hints

  • no more limitation of the number of variables
  • variables saves until delete TweakBar node
  • can use only for one renderer

Known Issues

  • keyboard input with long press is not support yet

Future Deployment

  • support more parameters for tweakbar and variables

Change Log

2012.2.14 (v0.91)

  • support full-screen mode
  • fixed renderer re-size bug
  • no more output NIL if disconnect and connect layer out again

2012.12.25 (v0.92)

  • fixed fixed error when using with >beta28

2014.6.9 (v1.0)

  • re-write plugin with 100% C#
  • support save & load tweakbar
  • new variable Types
    • Button: like a Bang
    • Enumerations: like an Enum
  • new nodes
    • Event: control Mouse, Keyboard, Window Size change (remove these pins from TweakBar node)
    • GetEnum: get Enum index and string from TweakBar
    • Writer: save tweakbar status & variables as text file
    • SetVariable: set variables & update GUI from patch
  • support across multi-monitor when /dx9
  • no more limitation of number of variables
  • TweakBar node outputs Transform Out. it is useful for custom background with Quad
  • improve keyboard input

Source

source code available on github. (ver1.0 will coming soon!)
https://github.com/mino218/vvvvPlugins

download

AntTweakBar_1.0.zip
08.06.14 [17:07 UTC] by mino | 1233 downloads
added new features, build for beta32
Show 3 older revisions

Older Revisions

AntTweakBar_0.92.zip
25.12.12 [09:18 UTC] by mino | 910 downloads
fixed error >beta28
AntTweakBar_0.91.zip
14.02.12 [11:27 UTC] by mino | 841 downloads
renderer re-size bug fixed and support full-screen mode
AntTweakBar_0.9_fixed.zip
12.02.12 [07:35 UTC] by mino | 899 downloads
compile with Release mode

guest 10/02/2012 - 19:42

cool:)

lasal 10/02/2012 - 20:28

hohohow!!
great job, but unfortunately it doesn´t work for me.
red node even if i throw it on the patch window.

u7angel 11/02/2012 - 01:02

same here, red nodes

lightizm 11/02/2012 - 01:42

Thanks! mmm... Looked red node.

mino 11/02/2012 - 02:35

strange. everyone with beta27? ver0.9 will only work with b27.
what TTY reports?

everyoneishappy 11/02/2012 - 03:22

This looks like it will be very very handy.
Red atm on b27 for me too,
tty reads:

00:00:16 ERR : System.IO.FileNotFoundException: Could not load file or assembly 'AntTweakBarNodes.dll' or one of its dependencies. The specified module could not be found.
File name: 'AntTweakBarNodes.dll'

   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at VVVV.Hosting.Factories.DotNetPluginFactory.CreatePlugin(INodeInfo nodeInfo, IPluginHost2 pluginHost)
   at VVVV.Hosting.Factories.DotNetPluginFactory.CreateNode(INodeInfo nodeInfo, IInternalPluginHost pluginHost)
   at VVVV.Hosting.Factories.AbstractFileFactory`1.Create(INodeInfo nodeInfo, INode host)
   at VVVV.Hosting.HDEHost.CreateNode(INode node)
everyoneishappy 11/02/2012 - 03:23

sorry for the slaughter house formatting :P

u7angel 11/02/2012 - 03:28

same here

mino 11/02/2012 - 04:00

thanks,
that message means couldn't load native AntTweakBar.dll. please check security settings.
at christmas-pack-2011 contribution comment,

jonferran said
Right click on all the .dll files that come with the pack, including the sanford ones, and click properties. You will notice a message that says:

Security: This file came from another computer and might be blocked to help protect this computer

Just click the button next to the message that says "Unblock" and you are good to go. You have to do it for all the files in nodes/plugins and the sanford .dlls individually, but after that the nodes shouldn't be red.

m4d 11/02/2012 - 04:35

this looks very nice. thanks for contributing!

unfortunately i have the same problem as the others. my security settings are doublechecked so that should not be the problem..

u7angel 11/02/2012 - 11:30

not helping here either :/

joreg 11/02/2012 - 15:31

just works for me. crazyshit...

what i did:

  • extracted \AntTweakBar_0.9 to ...\Desktop\contributions\plugins
  • started beta27
  • opened root (ctrl+r)
  • added ...\Desktop\contributions to path
  • created node TweakBar and checked its helppatch

great work mino!

lasal 11/02/2012 - 16:42

Hi Joreg,

following your steps it doesn´t work for me.
i´m on xp so the security issue is not related to this problem, as i know...

mino 11/02/2012 - 16:59

everyone,

Sorry for the confusion:-( I should try with another win pc.
please wait until next info.

mino 12/02/2012 - 08:37

OK! I found problem.
my VS2010 compile mode was Debug. change Release mode and re-build, it works with xp.

if failed with win7, it will dll security block.

please try again;-)

androsyn 12/02/2012 - 13:47

compliments! but still doesn't work for me too

u7angel 12/02/2012 - 13:50

on win7 it was the same problem, not the security lock. it does work now. thank you very much for your work.

i bet, if you release a dynamic plugin instead of binaries, people can help each other, finding errors and bugs.

cheers :)

mino 12/02/2012 - 15:50

oh, not solved yet...

@u7angel
true. this time writting plugin with c++/cli not c#.
first of all, please give me few days for upload VS project to github. (not vvvv-sdk)
also I'd like to try dynamic plugin version someday:-)

elliotwoods 12/02/2012 - 16:22

great!
runs for me on 27.1
would be great for GUI's if we can get mouse events upstream in any Layer connected to the renderer

bo27 12/02/2012 - 16:32

+5

m4d 12/02/2012 - 18:06

running here now! (beta 27, win7 x64) :)

edit: on changing the renderer to second monitor it poofs with logging this to the console:

00:06:15     : I am from DestroyDeviceData
00:06:15  -  : AsDesktop: 1600 x 1200
00:06:15     : I am from CreateDeviceData
00:06:15     : I am from UpdateDeviceData
androsyn 13/02/2012 - 10:41

yes, running fine on b27
:)

u7angel 13/02/2012 - 15:23

can't wait to see renderer-size and fullscreen "bug" fixed. will give it a proper testing then. keep up the good work, mino.

mino 14/02/2012 - 12:44

uploaded v0.91.
support full-screen mode and fixed renderer re-size bug.

@m4d
great! also I forgot commentout some log messages (I am from...). now hide them.

@u7angel
thanks, please try new version.

now, prepare for share code;-)

sunep 14/02/2012 - 13:09

perhaps it is me, but I can not get GetVariable to work not when I add GetVariable to the TweakBar helppatch and not in the GetVariable help patch.

the resize works fine now, I did however get some funky behavior with both help patches open

u7angel 15/02/2012 - 00:41

new version works well here.

androsyn 15/02/2012 - 15:40

i noticed that if i work windowed on 1st screen and drag to 2nd screen, the GUI disappears, leaving only the cursor (on b27), anyone else?

m4d 15/02/2012 - 18:17

@mino: really nice. thanks a bunch!

@androsyn: yeah, reported that in my 2nd post. you could always just reset the node by alt-rightclicking it, but it would ofcourse be better to fix this in the long run..

lasal 19/02/2012 - 19:19

It works now for me,
Version 0.91
Thanks mino, great contribution ;)

mino 20/02/2012 - 08:47

@sunep
yes, using with multiple renderer will not stable. i think it is library limitation.

@androsyn & @m4d
i didn't test with multi-screen yet. thanks report!

androsyn 21/02/2012 - 14:10

ya great

tgd 02/06/2012 - 19:09

really helpful and easy to work with!

Is it possible to have a bang button?
Is it possible to get the current size and position of the tweakbar?

mino 04/06/2012 - 03:19

@tgd
buttons and get status of bar not supported yet.

original tweakbar lib support buttons, so it's possible. toggle button should first, then i will try bang one.

get size and position is also available. for this i should create new node something like Info.

please wait till the next release!

tgd 04/06/2012 - 19:34

cool, looking forward..thanks
hope you can look into radio buttons too :)

bjoern 29/11/2012 - 16:37

hello,

doesn't work with vvvv_45alpha28.5.
Throws the following error when opening one of the help-patches and the nodes are red.

Exception class: EClrException
Exception message: Could not load type 'VVVV.PluginInterfaces.V2.ISpread' from assembly 'VVVV.PluginInterfaces, Version=2.0.4703.37104, Culture=neutral, PublicKeyToken=null'.
Exception address: 00000000.
robe 30/11/2012 - 12:33

doesn't work also on beta 28.1 for me...

/showexceptions

Could not load type 'VVVV.PluginInterfaces.V2.ISpread' from assembly 'VVVV.PluginInterfaces, Version=2.0.4622.33795, Culture=neutral, PublicKeyToken=null'.

I cannot attach the .log, but i don't want to post it here and mess up the formatting of this page so...

bye

mino 02/12/2012 - 09:25

hi,
thanks report. I'll check it.

Elias 02/12/2012 - 17:31

@mino
feel free to ask if you have any questions how to get your work into the addonpack and therefor automatically being built by our build server.

the error people report here comes from an interface renaming. the non generic ISpread interface was moved to VVVV.PluginInterfaces.V2.NonGeneric.ISpread as it conflicted with the generic ISpread in c++ if i remember right.

mino 25/12/2012 - 10:25

sorry for late update, now v0.92 works with beta28 or 29. (under 27 not working:(

@Elias
thanks. I'm not familiar with git, but I will try...

Westbam 27/12/2012 - 15:17

Hoy smoke, missed this one, but this is a gamechanger for quick patching some GUI elements.

Thank you a million!!

In full screen mode the keyboard shortcuts dont seem to work. (beta29).
It seems like the Alpha value of the color is add at the end of the process, it 'jumps on'. but since I use coloralpha=false for my lights, I don't mind.

Minor Wishlist:
Use a texture (alpha enabled) as background.
Add a parameter to hide the colormode picker.
A way to scale the menu from within vvvv.
When disabled we still see the help and shortcuts menu.

catweasel 16/01/2014 - 16:03

This great, but how to set variables!

mino 18/01/2014 - 09:32

hi cat,

just bang Add pin after set type and name.
please check help patch!

catweasel 18/01/2014 - 12:04

I get that, but need to set what the variables values are when they get set too, otherwise your always starting from scratch and not tweaking!

mino 19/01/2014 - 14:50

that's not support yet. I recognize that I should re-write this plugin and support more useful features.

AndyC 15/04/2014 - 20:52

Hi Mino, this is a brilliant plugin, thanks for your effort, did you find any time to develop a way to save values?

mino 17/04/2014 - 02:40

@AndyC
coding new AntTweakBar plugin right now.
it has SetVariables, Writer, Reader node and written in C#!

but I need more time to release, so please waiting ;)

m4d 17/04/2014 - 17:02

@mino: sounding very nice!

metrowave 19/04/2014 - 14:02

Thanks mino, very useful and attractive plugin!

mino 08/06/2014 - 17:45

hi all,
please test & enjoy with plugin ver 1.0!
it has so many new features ;)

of course please submit additional requests.

seltzdesign 18/05/2017 - 14:10

mino - are you still developing this? I tried getting it to work with 35.2, but keep getting this error:

Exception occurred during creation of plugin: Could not load file or assembly 'file:///C:\Program Files\vvvv_50beta35.2_x64 SP 1.1\vvvvContributions\plugins\AntTweakBar_1.0\AntTweakBarNode.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Any idea why that might be? Have done all the unblocking and files are in the location it is looking for.

guest 21/05/2017 - 03:46

Try it with a x86 version of vvvv

mino 22/05/2017 - 16:28

@seltzdesign not update recently. i'll check it

anonymous user login

Shoutbox

~2d ago

~3d ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~7d ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~7d ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~14d ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~20d ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/

~20d ago

~21d ago

fleg: hey there! What's the best tool for remote work? Teamviewer feels terrible. Thanks!

~1mth ago

joreg: Last call: 6-session vvvv beginner course starting November 4: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-i/

~2mth ago

joreg: Missed the last meetup? You can rewatch it here: https://www.youtube.com/live/MdvTa58uxB0?si=Fwi-9hHoCmo794Ag