-
Notifications
You must be signed in to change notification settings - Fork 342
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
easier access to materials with a node #6
Comments
here row.prop_search(self, 'material', bpy.data, 'materials', text='', icon='MATERIAL_DATA') if there are materials in the .blend this finds them, selecting one will assign the material name to |
oh that Looks extremly useful. I didn't know this prop_search thing |
There's plenty of nuggets like this in Sverchok, but I understand if you want to figure stuff out by yourself. |
I will figure them out myself but if you have tips, feel free to share them :D I dont now if you took a look at my code. Maybe you have some ideas how I can imrove my style or so. |
I'll read your code base carefully, so far it looks nice and clean. |
but a great talk to absorb is: http://www.youtube.com/watch?v=OSGv2VnC0go |
Thanks for this link. Will watch this after my driving lesson :D |
thanks again :D pretty interesting stuff shown in this talk. |
Use a pep8 checker or pep-8 auto-formatter. First you will battle with it for a little, then you will see they are quite handy. What do you code in? Sublime? Vim? Gedit? Avoid using variable names see: subheading "Avoiding dots" objects = bpy.data.objects
obj = objects['Cube'] If you can alias something once, before a tight loop that can help improve efficieny. Frequent access to Aesthetically I like to push this into most things with from bpy.props import (
FloatProperty, StringProperty, IntProperty, EnumProperty
) yes this makes the import list a bit longer, but I defend that by saying we don't spend much time looking at the import list. But I must admit this is more style than anything, because these properties are generally only made explicit in the class body. If you have many many property definitions then you will want to import them first else you get a wall of text |
addendum: http://www.youtube.com/watch?v=DJtef410XaM (The Clean Architecture in Python : Brandon Rhodes) you will also learn a few things from Mr Rhodes. |
I'm currently coding in Notepad++ Most of the time I already try to avoid dots, but you are right. I never imported FloatProperty , etc before using it. I will Change that after the my current Project. I try to write something like another little Interpreter that generates a string that I can compile at runtime and then I want to run this on every Frame Change or so. |
most of bpy is a massive |
jep. I used this get method multiple time already. Yeahh. it works. |
okay. your right :D |
i'll fork (soon) and experiment too, there are things i'd like to try that don't make sense to implement Sverchok at this point |
for example? |
various easing functions |
okay cool I have 360 nodes running at 20 fps. I think thats quite good |
Inculde the Fix getMesh function.
No description provided.
The text was updated successfully, but these errors were encountered: