Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea for text viewer #894

Closed
nortikin opened this issue Sep 30, 2016 · 36 comments
Closed

idea for text viewer #894

nortikin opened this issue Sep 30, 2016 · 36 comments
Assignees

Comments

@nortikin
Copy link
Owner

nortikin commented Sep 30, 2016

to create Frame for inserted ViewerText node that binded automatically to Sverchok viewer text file. So user can view automatically, no need to open text window. But question is size of frame and where to post it and if add new viewer, we not need to add new frame. And when removing last viewer, should we remove frame (i guess not)?
That is simple improvement, i think.

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

you want to autosplit the (nodeview) to (textview+nodeview) ? and select the textblok of the newly created textview to match the textblok that the ViewerText is writing to?

simple Tickbox for ViewerText to turn on/off auto updates, and make ratelimit the update frequency,... like .. 'if last update < 0.2 second skip this update`

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

if so.. perhaps may help: https://github.com/zeffii/BlenderPythonRecipes/wiki/Areas

@nortikin
Copy link
Owner Author

nonono, easier. Ctrl+J frame will contain text from sverchok viewer text file. no need areas

@nortikin
Copy link
Owner Author

so nodeview will contain text in frame

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

oooh. i read incorrectly, literally the Frame . i see :) cool :)

@nortikin
Copy link
Owner Author

nortikin commented Sep 30, 2016

but autoupdate is needed, as sthetascope do maybe. or leave button...

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

so, ViewText is added and it Auto packs itself into a Frame?

@nortikin
Copy link
Owner Author

nortikin commented Sep 30, 2016

that is question. where to put frame? maybe separately add as empty or to add framed text viewer + size

@nortikin
Copy link
Owner Author

additionally adding text viewer need to initiate text file Sverchok_viewer and create frame and link text file to frame than

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

I like this.. difficult to decide, but I think option to 'Frame Me' would be neat for ViewerText , it would then autoset the Frame.txt to the correct one.

@nortikin
Copy link
Owner Author

or... define minimum velues left-up and add frame to leftest uppest corner once and leave it alone. We can additionally add form to describe layout in some text, adding header and description in upside of layout. auto-typography. this may be contained in some meta-data of layout and import-export. than added when importing.
Finding out username automaticelly to sign. I discribe my user experience as an architect.

@nortikin
Copy link
Owner Author

nortikin commented Sep 30, 2016

if you "frameme" the node, node will cover frame text and hide data.

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

well I see your point, but you can frame.shrink = False and translate the inner node away

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

but you are right, it does not need to autoframe the ViewerText..

@nortikin
Copy link
Owner Author

nortikin commented Sep 30, 2016

https://gist.github.com/nortikin/4852a618a14d9dfe439bafc2ff6c0c13
this gist prototype for init of viewer text
and i found an https://github.com/JacquesLucke/animation_nodes/blob/master/base_types/template.py can have popup windows at creation. this is cool.

@nortikin
Copy link
Owner Author

@nortikin
Copy link
Owner Author

nortikin commented Sep 30, 2016

maybe better to add this node at layout creation... but how?

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

There is no constructor for Layouts.. We wanted this to force an automatic User for each new layout. The only useful suggestion was to create an operator replacement for making a new node tree.

SvNewNodeTreeCreation(....):

    def execute(self, context):
         self.fake_user = True
         self.nodes.new('...your template ')

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

@nortikin don't use underscore in classname/ bl_idname for the node ViewerNode_text

@nortikin
Copy link
Owner Author

I use name instead.

@zeffii
Copy link
Collaborator

zeffii commented Sep 30, 2016

pitty Frame doesn't do syntax highlighting :/

@nortikin
Copy link
Owner Author

nortikin commented Oct 1, 2016

got it about underscore
ok. need to rename?

@nortikin
Copy link
Owner Author

nortikin commented Oct 1, 2016

@nortikin
Copy link
Owner Author

nortikin commented Oct 1, 2016

I admit we ned separate button for this frame stuff and so on.
question is how to add script to ops bpy.ops.node.new_node_tree(type='SverchCustomTreeType', name='NewSv')
with frame creation automatically.

@zeffii
Copy link
Collaborator

zeffii commented Oct 1, 2016

for convenience bl_idname and classname are identical for all nodes. (I think). ViewerTextMK2 would be fine right? that tells us it's a new / remake.

I'm not sure we can override default ops like new_node_tree , this is one area where Blender sucks, but we could replace the operator that's triggered by Ctrl+N.

@nortikin
Copy link
Owner Author

nortikin commented Oct 2, 2016

so, for now viewer text makes Frame at button pressing.
It is strange behavior, but i ready to push.
playing some with Frame color to mutch current theme also.

@enzyme69
Copy link
Collaborator

enzyme69 commented Oct 2, 2016 via email

@nortikin
Copy link
Owner Author

nortikin commented Oct 3, 2016

@enzyme69 do you mean text have to look like:

vertices | pols/edges | matrices
=1=      | =0=        | =1=
()       |            | ()
()       |            | ()
()       |            | ()
()       |            | ()

?
Or to add three frames for each? or to make frame for every node separately?

@nortikin
Copy link
Owner Author

nortikin commented Oct 3, 2016

the text from text area will looks like:

vertices | pols/edges | matrices
=1=      | =0=            | =1=
()           |                    | ()
()           |                    | ()
()           |                    | ()
()           |                    | ()

or

vertices | pols/edges | matrices
=1= | =0= | =1=
() | | ()
() | | ()
() | | ()
() | | ()

@nortikin
Copy link
Owner Author

nortikin commented Oct 3, 2016

or to break data that longer than frame height?

@enzyme69
Copy link
Collaborator

enzyme69 commented Oct 4, 2016

Hmm... in a way that we can see all in one window not scrolling to find
data in other column :)

On Monday, 3 October 2016, nikitron notifications@github.com wrote:

or to break data that longer than frame heigh?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#894 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADxQLw-SFr5qbt0HohOeMQKXhdr8EoLOks5qwPt2gaJpZM4KK_CB
.


@nortikin
Copy link
Owner Author

nortikin commented Oct 4, 2016

it is hard. Font in blender is not monospace i guess.

@enzyme69
Copy link
Collaborator

enzyme69 commented Oct 4, 2016 via email

@nortikin
Copy link
Owner Author

nortikin commented Oct 4, 2016

ok, patrially text out node's functionality can be supported, but hey, why not upgrade text out node itself? we can use it to make csv file that updated every time (with boolean active) with form of data you ask now. How do you think? It is not matter of frame text, but of csv format.

@enzyme69
Copy link
Collaborator

enzyme69 commented Oct 5, 2016 via email

@nortikin nortikin mentioned this issue Oct 5, 2016
47 tasks
@nortikin
Copy link
Owner Author

nortikin commented Oct 7, 2016

Dealga thought of it as i see from comments in code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants