Closed enzyme69 closed 7 years ago
Currently discovering XML, elementree, tag, etc. This
You need to figure this out by yourself. All progress involves struggle and determination. Good luck
Thanks Zeffii! --
This is actually getting somewhere! 💃
There is a sense of accomplishment with parsing code.
The code is pretty crappy at the moment, but basically since the data itself is actually fairly tidy and has certain pattern, this XML, all I want is the coordinate X,Y and the stroke pressure.
To Be Continued.
Maybe I share the completed Script Node here.
I don't know maybe I am the only person in the world using iPad and ArtRage and Sverchok in Blender :D
Don't worry about crappy code, you have to write a whole lot of crap code to gradually become better. It's more useful as a learning experience just to code it .. warts and all. Then if you feel it should be improved, that's when you ask someone more experienced to have a look and point you at better coding style / conventions / techniques..
Once you can do no more to it, share it. always share it. I've found this to be the best way to make sure I never lose code (code=time you'll never get back).
i will quote this frase about time
Thanks for tips, @zeffii :D I am learning. True on CODE=TIME.
I will put some of my internal dialogue here: https://github.com/enzyme69/blendersushi/issues/1
Checking out this GML importer by Nick: https://github.com/n1ckfg/LightningArtist/tree/master/blender
It seems to have issue maybe the grease pencil data it is creating is not 100%.
it is GP animation import export, so usefull maybe for animators.
@Nikitron unfortunate effect is one frame delay... maybe sverchok needs force update node that update something each cycle, kind of like AN process all, using all CPU --
No.. obj id selector probably needs a frame in. Socket.
I am currently starting at this script generated via app called ArtRage. Maybe this can be an interesting study in Sverchok. https://www.artrage.com/manuals/getting-started-artrage/older-desktop-editions-artrage-2-3/artrage-4/script-files/
This can be a fun parsing task as a Python node. artrage_test_001.arscript.zip
Ideally, I really like @zeffii idea of GML (Graffiti Markup Language) thing. It should transfer well into Grease Pencil, maybe, more or less. There are probably some GML data out there that can be transferred into Grease Pencil via Sverchok. Something I want to see.
At some point in the future, we probably have 3D paint tool ala TiltBrush for VR users. I do not have access to those 3D painter unfortunatley.
Anyway, Art Rage 2D strokes look something like below:
Maybe it is like a basic Motion Capture data of some sort. I will try to parse it using my knowledge of Python. I think the data has XML bits.
Hoping for some hints to the right direction.
Thank you!