ronviers
![]() |
I do not know anything about ff’s scripting so this may not make sense. Would it be possible to script a notes node? This would be a node that I could add to a filter, where I could just type in it, so it would remind me of what I had going on, or inform someone else of how things work. Also, would it be possible to add a notes section to existing nodes?
@ronviers |
|||||
Posted: January 8, 2011 7:19 am | ||||||
Sphinx.
![]() |
yes, you can use the block comment style:
--[[ notes here ]] |
|||||
Posted: January 8, 2011 7:52 am | ||||||
ronviers
![]() |
Would you mind posting an example?
@ronviers |
|||||
Posted: January 8, 2011 7:54 am | ||||||
ronviers
![]() |
I was hoping for something like this:
![]() @ronviers |
|||||
Posted: January 8, 2011 8:01 am | ||||||
ronviers
![]() |
Then an arrow would point to a marquee selected node or region of nodes.
![]() @ronviers |
|||||
Posted: January 8, 2011 8:06 am | ||||||
Sphinx.
![]() |
Ah I see, well that requires some work
![]() The "simple" way of doing this is to find a character map (preferably with a small monospaced pixel font), convert that to a table that is stored in the script component and then use a look up function that takes lua strings and returns character pixel data... An image like this can be used: ![]() |
|||||
Posted: January 9, 2011 3:08 am | ||||||
Sphinx.
![]() |
Here is some related Lua code (it will not work in its current form as it seem to use additional libraries etc. and it need to be converted to FF sampling style)
(source: http://forums.qj.net/psp-development-...font.html) First of all it seems to use some sort of Image library to load image data to a table, here we need an alternative. I'm thinking about a temporary unsafe script that takes a FF map input and store that to a text file (with the correct table formatting). The content of the text file can then be copied into the main script afterwards. Secondly, the whole blitting concept (target:blit) is opposite to how FF works (projection vs. sampling), so this need to be changed (using two imposed grids for lookup, first is for character zones, second is for pixel zones). Beside from that, the character lookup stuff should work. Note that the character image/table need to contain one line of characters only. And they must be monospaced. The InputString variable should reflect the character layout in the table. |
|||||
Posted: January 9, 2011 3:28 am | ||||||
ronviers
![]() |
Do you think it's practical? The way you are thinking about it; would be be easy enough to use for people to use it?
@ronviers |
|||||
Posted: January 9, 2011 8:34 am | ||||||
ronviers
![]() |
It would be cool if these notes nodes could be linked to the wiki, and the wiki entries linked to the filters. That combined with a rating system, so the best could propagate to the top, would make ff semi-autodocumenting.
![]() @ronviers |
|||||
Posted: January 9, 2011 9:30 am | ||||||
ronviers
![]() |
I know this is off topic, but I know you would know; is it possible to put buttons in the descriptions of our filters? See how this artist has it set up. You can buy her a cup of coffee, which is actually a solicitation for a 2usd donation via paypal. I would like to do that.
![]() ![]() @ronviers |
|||||
Posted: January 9, 2011 9:50 am | ||||||
Sphinx.
![]() |
Well, it would work like this: you copy the text script component and change a text string in the source... there is no way to get a real text input in line with the other input/control types.. I guess that rules out a user or two, dunno..
LOL! And make coffee too? Seriously, what you talk about there is a completely different story - I'm not even sure that is possible with Lua (via FF). Even if it is, it requires a lot of coding and for sure some "unsafe" OS specific operations. |
|||||
Posted: January 9, 2011 11:24 am | ||||||
Fortunas
![]() |
Wouldn't making coffee be more a Java script than it would Lua?
![]() |
|||||
Posted: January 9, 2011 4:32 pm | ||||||
ronviers
![]() |
That’s not clear, but it’s because I have not done enough homework. I played around with the script node for the first time today. It’s not a total mystery anymore but I have a lot of reading to do before I can make use of it.
I didn't really think it was practical, just something that came to mind. ![]() @ronviers |
|||||
Posted: January 9, 2011 7:14 pm | ||||||
Sphinx.
![]() |
If scripting/programming is completely new to you, I can definitely understand why it is a tough subject. I'd like to write a tutorial for people with absolutely no scripting experience. But I need some pointers on what type of problems (even the most simple ones) etc to adress in the tutorial. I wrote Scripting Tips and Tricks in the Wiki, in which I attempt to explain things in detail, but it does not adress very fundamental concepts and questions.. some pointers on what you find hard to understand and such, will be of great help ![]() |
|||||
Posted: January 10, 2011 3:30 am | ||||||
ronviers
![]() |
It’s been all me. I have not made a systematic effort to learn it. I will, but I have some other things I need to do first.
Thank you for all the work you have done to make lua accessible. ![]() @ronviers |
|||||
Posted: January 10, 2011 6:45 am | ||||||
Mike Blackney
![]() |
ronviers: I like the original note idea, at the moment a lot of people are getting by by dropping down controls and using the name field to type a comment. It's not ideal for leaving yourself long notes unless you're ok dropping down dozens of unconnected checkboxes. You didn't want to actually render the comment out to the filter, did you?
|
|||||
Posted: January 13, 2011 5:05 pm | ||||||
ronviers
![]() |
Any step up from the checkboxes would be fine with me.
![]() @ronviers |
|||||
Posted: January 13, 2011 5:42 pm | ||||||
Dmitry Sapelnikov |
IMO, the notes via text rendering are absolutely seditios for FF =)
But text descriptions in filter editor can be really useful indeed. I'll note the idea for the future. |
|||||
Posted: January 29, 2011 1:56 pm |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,712 Registered Users
+19 new in 30 days!
153,533 Posts
+31 new in 30 days!
15,348 Topics
+73 new in year!
25 unregistered users.