Page MenuHome

Jakub Uhlik (carbon14)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 11 2013, 8:28 PM (466 w, 3 d)

Recent Activity

Thu, Jan 6

Jakub Uhlik (carbon14) added a project to T94685: bpy.types.SpaceSpreadsheet.draw_handler_add - TypeError: unknown space type 'SpaceSpreadsheet': Python API.
Thu, Jan 6, 12:47 PM · Python API, BF Blender
Jakub Uhlik (carbon14) created T94685: bpy.types.SpaceSpreadsheet.draw_handler_add - TypeError: unknown space type 'SpaceSpreadsheet'.
Thu, Jan 6, 12:47 PM · Python API, BF Blender

Wed, Jan 5

Jakub Uhlik (carbon14) added projects to T94658: pyrna_enum_to_py: current value '20517' matches no enum in 'Event': Python API, User Interface.
Wed, Jan 5, 11:25 AM · User Interface, Python API, BF Blender
Jakub Uhlik (carbon14) created T94658: pyrna_enum_to_py: current value '20517' matches no enum in 'Event'.
Wed, Jan 5, 11:24 AM · User Interface, Python API, BF Blender

Tue, Jan 4

Jakub Uhlik (carbon14) added a comment to T75717: New pointcloud object type.

thanks, mesh to points conversion works well, nice that it even keeps any attribute i add on vertices. it is only a bit counter-intuitive

Tue, Jan 4, 9:41 AM · Nodes & Physics, BF Blender

Mon, Jan 3

Jakub Uhlik (carbon14) added a comment to T75717: New pointcloud object type.

having size to set when datablock is created would be very very helpful. normals, colors etc. could be stored in attributes..
would be nice to see what cycles can do with real point cloud data now when points can be rendered as spheres (with color as well i hope)
i can easily get points loaded as numpy arrays, but right now i need to create mesh vertices with attributes, make instances on them in geometry nodes, colorize them (and in reality flatten them into single large mesh) and then render

Mon, Jan 3, 9:19 PM · Nodes & Physics, BF Blender

Fri, Dec 31

Jakub Uhlik (carbon14) added a comment to T75717: New pointcloud object type.

hi, i have a question about python api. there seems to be fixed number of points (400) when object is created from add menu, and zero when created as new datablock, and there is no apparent way to add new points like in mesh with MeshVertices.add(count), foreach_set then sets only first 400 point locations. do i miss something, or is it something pending?

Fri, Dec 31, 10:31 PM · Nodes & Physics, BF Blender

Sat, Dec 25

Jakub Uhlik (carbon14) added a comment to T91325: tablet mouse mousemove events are firing when should not.

it is not a problem of coordinates, but that the event is firing, no change should be no event i guess. another test, i took myself from equation, made L from boxes, put pen in corner, nothing moved, no change in pressure, no change in tilt, many many events firing constantly. would be nice if somebody can replicate that with maybe less well used tablet. mine might be faulty after years of use..

Sat, Dec 25, 7:15 PM · User Interface, BF Blender

Dec 20 2021

Jakub Uhlik (carbon14) updated the task description for T94202: crash or error when using GPUFrameBuffer.read_color(... data=data).
Dec 20 2021, 1:18 PM · Python API, BF Blender

Dec 17 2021

Jakub Uhlik (carbon14) updated the task description for T94202: crash or error when using GPUFrameBuffer.read_color(... data=data).
Dec 17 2021, 8:32 PM · Python API, BF Blender
Jakub Uhlik (carbon14) added a project to T94202: crash or error when using GPUFrameBuffer.read_color(... data=data): Python API.
Dec 17 2021, 8:27 PM · Python API, BF Blender
Jakub Uhlik (carbon14) created T94202: crash or error when using GPUFrameBuffer.read_color(... data=data).
Dec 17 2021, 8:25 PM · Python API, BF Blender

Sep 10 2021

Jakub Uhlik (carbon14) added a project to T91325: tablet mouse mousemove events are firing when should not: Python API.
Sep 10 2021, 10:22 PM · User Interface, BF Blender
Jakub Uhlik (carbon14) created T91325: tablet mouse mousemove events are firing when should not.
Sep 10 2021, 10:21 PM · User Interface, BF Blender

Aug 31 2021

Jakub Uhlik (carbon14) added projects to T91095: import operator does not work when called from floating menu: Python API, User Interface.
Aug 31 2021, 10:41 PM · User Interface, Python API, BF Blender
Jakub Uhlik (carbon14) created T91095: import operator does not work when called from floating menu.
Aug 31 2021, 10:40 PM · User Interface, Python API, BF Blender

Mar 17 2021

Jakub Uhlik (carbon14) added a project to T86678: modal operator and dislocated button tooltip: User Interface.
Mar 17 2021, 9:25 PM · Python API, User Interface, BF Blender
Jakub Uhlik (carbon14) created T86678: modal operator and dislocated button tooltip.
Mar 17 2021, 9:24 PM · Python API, User Interface, BF Blender

Feb 12 2021

Jakub Uhlik (carbon14) added a comment to T85509: get vertex group values from evaluated mesh object.

@Philipp Oeser (lichtwerk) oh i am terribly sorry, i missed preserve_all_data_layers, thank you!
can i have a question? are going vertex groups, vertex colors etc. eventually replaced with attributes in future? would be nice to have unified access to all data

Feb 12 2021, 9:35 PM · Python API, BF Blender

Feb 9 2021

Jakub Uhlik (carbon14) added a project to T85509: get vertex group values from evaluated mesh object: Python API.
Feb 9 2021, 9:46 PM · Python API, BF Blender
Jakub Uhlik (carbon14) created T85509: get vertex group values from evaluated mesh object.
Feb 9 2021, 9:43 PM · Python API, BF Blender

Jan 28 2021

Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

this is related i think https://developer.blender.org/T82843

Jan 28 2021, 10:23 AM · Python API, EEVEE & Viewport, BF Blender
Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

you have to have with empty scene, no camera, no anything drawn with lines, like this

Jan 28 2021, 10:20 AM · Python API, EEVEE & Viewport, BF Blender
Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

one more thing, if there is an empty in scene, it works as it should, if there is only mesh objects it flips on deselect

Jan 28 2021, 8:22 AM · Python API, EEVEE & Viewport, BF Blender
Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

version: 2.93.0 Alpha, branch: master, commit date: 2021-01-27 22:47, hash: df135b74fc93, type: Release - broken as well

Jan 28 2021, 8:18 AM · Python API, EEVEE & Viewport, BF Blender
Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

ah, steps, add a Plane, run script, click outside to deselect Plane, drawn dots will be flipped

Jan 28 2021, 8:16 AM · Python API, EEVEE & Viewport, BF Blender
Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

@Campbell Barton (campbellbarton) yes, it is still happening in
version: 2.92.0 Beta, branch: master, commit date: 2021-01-18 17:08, hash: b5c3f26cba81, type: Release
version: 2.93.0 Alpha, branch: master, commit date: 2021-01-19 22:43, hash: 6290091bace2, type: Release

Jan 28 2021, 8:12 AM · Python API, EEVEE & Viewport, BF Blender

Dec 1 2020

Jakub Uhlik (carbon14) added a comment to T83294: geometry nodes on mac.

ah! ok, sorry :(

Dec 1 2020, 8:07 PM · BF Blender
Jakub Uhlik (carbon14) added a comment to T83294: geometry nodes on mac.

a few more screenshots

Dec 1 2020, 8:04 PM · BF Blender
Jakub Uhlik (carbon14) created T83294: geometry nodes on mac.
Dec 1 2020, 8:01 PM · BF Blender

Oct 9 2020

Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

i played with it a bit more, there is no need to delete object (that is only i discovered there is something wrong)
selecting none, i.e. selecting background is all it needs.
also if code is run and no object is selected, i draw ok until view is moved, then it is wrong until any (!) object is selected
also checked win10, behaves the same
also prints from draw function are as they should, in this case

Oct 9 2020, 12:29 PM · Python API, EEVEE & Viewport, BF Blender

Oct 8 2020

Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

for a side note, sorry if the example is a bit crude, but this worked for me from 2.80 until now, i wanted to isolate problem with least code amount possible while it being portable enough
https://github.com/uhlik/bpy#point-cloud-visualizer-for-blender-280
https://www.blendermarket.com/products/pcv

Oct 8 2020, 5:46 PM · Python API, EEVEE & Viewport, BF Blender
Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

I can't reproduce. Does that needs release builds? I don't understand how that would come from the refactor. Does that happens if you also deselect all object (alt+A)?

Happens in Debug builds as well. It also happens on deselection.

Now that I actually read the provided code, I am not sure if this is a bug anymore.
Upon deletion, there is no active object anymore, so accessing its matrix will fail

  • the object is defined outside the draw_handler function though, maybe thats why drawing also sticks to the object that was active at the time of script execution (and changing the active object does not change shader uniform?)
  • prior to rB216d78687d2b it looks like the uniform doesnt change at all when active object changes
  • after rB216d78687d2b I am actually getting an error (havent noticed before) : "StructRNA of type Object has been removed" [which seems correct]

@Jakub Uhlik (carbon14) : is the intention to stick this on the active object [and also change when active object changes]?
Then this line should move into the draw_handler function (with some fallback if no active object exists)?

o = bpy.context.active_object

If should just stick to the object that was active at the time of script execution (no change on change of active object), I guess you should get the matrix (or a copy) outside the draw handler function?

Oct 8 2020, 5:29 PM · Python API, EEVEE & Viewport, BF Blender

Sep 30 2020

Jakub Uhlik (carbon14) created T81334: viewport drawing with gpu module.
Sep 30 2020, 8:35 PM · Python API, EEVEE & Viewport, BF Blender

Dec 17 2019

Jakub Uhlik (carbon14) created T72508: SpaceView3D.draw_handler_add, draw handler is called 8x times.
Dec 17 2019, 12:02 PM · BF Blender

Oct 15 2019

Jakub Uhlik (carbon14) added a comment to T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.

eh, i have it wrong, i run scale before pixels are assigned, swapping last two lines fixes it. i'm sorry, i'm stupid..

Oct 15 2019, 9:41 AM · BF Blender
Jakub Uhlik (carbon14) added a comment to T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.
import bpy
import gpu
import bgl
from mathutils import Matrix
from gpu_extras.presets import draw_circle_2d
Oct 15 2019, 7:47 AM · BF Blender
Jakub Uhlik (carbon14) added a comment to T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.

i have to disagree, i’m afraid. i’ll make an example to demonstrate the image distortion in result

Oct 15 2019, 7:04 AM · BF Blender

Oct 14 2019

Jakub Uhlik (carbon14) updated the task description for T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.
Oct 14 2019, 7:39 PM · BF Blender
Jakub Uhlik (carbon14) created T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.
Oct 14 2019, 7:34 PM · BF Blender

Sep 18 2019

Jakub Uhlik (carbon14) created T70000: very long operator name crashes upon addon activation.
Sep 18 2019, 1:28 AM · BF Blender

Aug 9 2019

Jakub Uhlik (carbon14) created T68442: ParticleSystem.uv_on_emitter returns always 0,0 while Particle.uv_on_emitter returns a value.
Aug 9 2019, 10:08 AM · BF Blender

Jun 26 2019

Jakub Uhlik (carbon14) created T66148: gpu, shader, points have no longer correct depth.
Jun 26 2019, 11:45 AM · EEVEE & Viewport, BF Blender

Feb 25 2019

Jakub Uhlik (carbon14) added a comment to T61851: packing 32bit tiff env texture results in 8bit-like behavior.

here it is, also i just noticed the same behavior in blender-2.79.0-git20190220.949ab753bb2e-x86_64

Feb 25 2019, 3:41 PM · Cycles, BF Blender

Feb 22 2019

Jakub Uhlik (carbon14) created T61851: packing 32bit tiff env texture results in 8bit-like behavior.
Feb 22 2019, 3:20 PM · Cycles, BF Blender

May 16 2016

Jakub Uhlik (carbon14) added a comment to T48444: different order of face vertices indexes between 2.76b and 2.77a.

here is a blend. run script.

May 16 2016, 5:35 AM · BF Blender

May 15 2016

Jakub Uhlik (carbon14) created T48444: different order of face vertices indexes between 2.76b and 2.77a.
May 15 2016, 8:44 PM · BF Blender

Sep 21 2015

Jakub Uhlik (carbon14) added a comment to T46176: custom render engine crashes blender by consecutive hitting f12.

hi, what you mean is, put everything to update() and leave render() empty, right? i am exporting file for external renderer anyway. but when i do that, it crashes the same way as before..

Sep 21 2015, 5:23 PM · BF Blender, Render Pipeline, Add-ons (BF-Blender)

Sep 20 2015

Jakub Uhlik (carbon14) added a comment to T46176: custom render engine crashes blender by consecutive hitting f12.

yea, i know, it's not quite nice solution, but i can't find any other way to get hair root position on uv for child particles. uv_on_emitter accepts only Particles..
anyway, the whole project is here, if interested: https://github.com/uhlik/blendmaxwell

Sep 20 2015, 2:47 PM · BF Blender, Render Pipeline, Add-ons (BF-Blender)
Jakub Uhlik (carbon14) created T46176: custom render engine crashes blender by consecutive hitting f12.
Sep 20 2015, 5:43 AM · BF Blender, Render Pipeline, Add-ons (BF-Blender)

Sep 7 2014

Jakub Uhlik (carbon14) created T41737: bpy.ops.wm.append message.
Sep 7 2014, 6:14 AM · Add-ons (BF-Blender), BF Blender

Aug 20 2014

Jakub Uhlik (carbon14) added a comment to T41500: mesh_f2.py annoying exception when running blender from terminal with '--background --python'.

sorry about broken formatting :(

Aug 20 2014, 8:01 AM · Add-ons (BF-Blender), Add-ons (Community)
Jakub Uhlik (carbon14) created T41500: mesh_f2.py annoying exception when running blender from terminal with '--background --python'.
Aug 20 2014, 8:00 AM · Add-ons (BF-Blender), Add-ons (Community)

Aug 18 2014

Jakub Uhlik (carbon14) added a comment to T41479: python: closest_point_on_mesh isn't accurate.

and i wanted to add a python tag, but for some reason i can't edit my own task.. is this a bug too? :)

Aug 18 2014, 6:50 PM · Add-ons (BF-Blender), BF Blender
Jakub Uhlik (carbon14) created T41479: python: closest_point_on_mesh isn't accurate.
Aug 18 2014, 6:35 PM · Add-ons (BF-Blender), BF Blender