curtisjamesholt / easybpy Goto Github PK
View Code? Open in Web Editor NEWA module to simplify the use of the Blender Python API.
A module to simplify the use of the Blender Python API.
This is an awesome collection of building blocks. I myself had been wanting to build this something like this but now I don't have to!
I'd like to add doc strings to all the functions and set up a build pipeline create documentation from the functions.
Is this something you would be open to?
def create_cube():
bpy.ops.mesh.primitive_cube_add()
return bpy.data.objects["Cube"]
def create_cube():
bpy.ops.mesh.primitive_cube_add()
return bpy.context.active_object
Hello! Thanks for this code, I like the idea.
There is one thing which caught my attention:
get_object()
is not equal to so()
, but get_object('NameWithTypo')
returns so()
.
I think in order to optimize UX every name string should be considered mistyped and the unexpected results will cause confusion until the typo is noticed.
get_object(None)
returns so()
too, but if ref
argument contains None
isn't it a mistake as well?
For example in the recent commit u have done , u have fluid type
so u have done set_fluid_type_none
,set_fluid_type_domain
and so on
wont it be better and more effitient for u to do set_fluid_type(type):
and then pass type into command inside
removing 4 functions for 1.
The reason for me suggesting this is that a person who knows a little bit of programming expects things to be this way
even if u want to keep this easy
u can just add an alternative 5th functions to support mainstream workflow also
Similarly instead of having
flow_type_set_smoke
flow_type_set_fire
flow_type_set_fire_smoke
flow_type_set_fluid
u can have set_flow_type(type)
My company won't let its employers or contractors import Python modules licensed GPL, or any other copyleft license. Apparently this is quite common, which is why a lot of recent open source software has more permissive licenses; check out the JavaScript/npm ecosystem for example: jQuery is licensed MIT (and it plays a role similar to EasyBPY), React is MIT, Vue.js is MIT...
(We are allowed to use creative software that's GPL, such as Blender, because creative works generated by Blender don't inherit the GPL license from Blender. Whoever created the work owns its copyright and can license it however they please.)
I'd like to use EasyBPY, but to do so, I'd have to import it, and it's licensed GPL, so that makes it impossible.
Could you change the license on EasyBPY to one that's not copyleft, e.g. the MIT, Apache 2, or some other non-copyleft license?
example:
def set_render_engine_cycles():
set_render_engine_to_cycles()
def set_render_engine_eevee():
set_render_engine_to_eevee()
why provide set_render_engine_cycles, if there is set_render_engine_to_cycles
it goes against the zen of Python There should be one-- and preferably only one --obvious way to do it
Would be great to have OBJ export support for automating export pipelines.
At line 3120
def fluid_fluid_particles_traped_air_potential_minimum(value):
val = float(value)
bpy.context.object.modifiers["Fluid"].domain_settings.sndparticle_potential_max_trappedair = val
def fluid_fluid_particles_traped_air_potential_minimum(value):
val = float(value)
bpy.context.object.modifiers["Fluid"].domain_settings.sndparticle_potential_min_trappedair = val
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.