New answers tagged

6

The diffuse_color is used for viewport display in solid mode. It's this: To change the Base Color, you need to access the right node in the node tree. The simplest case is mat = bpy.data.materials["chasis"] principled = mat.node_tree.nodes["Principled BSDF"] principled.inputs["Base Color"].default_value = (r, g, b, a) It would ...


5

"should contain 4 items, not 3" bpy.data.materials["chasis"].diffuse_color = (0, 0, 0, 1) 4th item would be Alpha in this case. Above line would be Black with opacity of 1. This, however, would be setting the Viewport Colour. To set the node base colour. Use this : bpy.data.materials["chasis"].node_tree.nodes["Principled ...


2

Based on my understanding of your problem, you could separate by material slots. Assign different material slots for the fragments of your mesh you want to separate: It doesn't matter what materials are assigned to the slots, e.g. a single material can be assigned everywhere and the mesh will still be separated - I use different materials to visualize how I ...


2

There is a gap between the origin and that right-most edge. Move the origin to the edge by... Go to the Tool Settings and check Origins under Options > Transform > Affect only. Turn on snapping by clicking the Snap button or with Shift+Tab. Set it to Edge Center. Select the object. Use G to Grab the Origin and hover over the edge to snap the origin ...


2

a.Make your selection. Then you can create a vertex group out of your selection. If you miss anything it is easy to edit or reload. b. In edit mode, You can either Press shift+d to duplicate your selection, to leave your model untouched, or skip this step to do a cut and copy c. Press P and choose selection You now have a separated part of your mesh. ...


2

Are you sure your Sun is named "Sun" and not something like "Sun.001" ? Are you sure there is a sun in your scene? You can also access objects by their index instead of their name. For example, if your sun is the fourth object in the scene, you may be able to access it with Sunobj = bpy.data.objects[3]


0

Ok, you try to animate a mouth, here a very very basic example. add a torus add an armature Tab -> Edit mode Click on the head of the bone tap E X click on the head of the first bone tap E X click on the upper bone, G X until so: click on the lower bone, G X until so: TAB -> object mode select the torus, shift select the armature -> CTRL-...


4

add a curve circle add a mesh star add object constraint "follow path" to your star, choose target "bezier circle" hover cursor over "offset" and hit "I", go to frame 100, enter "100" in offset and hover cursor over "offset" and hit "I" select mesh star in object properties hit "...


3

to "kind of" debug geometry nodes, it is always a good idea to check the values in the spreadsheet. So i connected your distance to the output... filled in a name put a realize instances before the output and i got: so i thought: why is distance 0? it is, because you calculated the distance to the trunk itself. So i added a new plane, called it ...


10

You have proportional editing turned on. Click this button at the top of the 3D viewport to turn it off: Alternatively, you can use the keyboard shortcut O to toggle it on and off.


1

I found the driver (dad-base object, go to shape keys, uncheck relative), but everything seems OK: Now, changing ["Viejo Father"] to what we can see on your screenshot: ["Sound Viejo Father"] does cause an error, because no such custom property exists on the target Pyramid.003:


3

The Attribute Math node is no longer necessary because the ordinary Math node now accepts fields as inputs and produces a field as output. The Point Separate node has been replaced with the more general Separate Geometry node. Here’s an example of how the new nodes might be used together in a configuration similar to the one in the video:


0

Object.active_shape_key returns the active shape key (data-block): https://docs.blender.org/api/current/bpy.types.Object.html#bpy.types.Object.active_shape_key obj = bpy.context.object print(obj.active_shape_key) # bpy.data.shape_keys['Key'].key_blocks["Key 1"] ... and as expected, ShapeKey.name returns the name of the shape key (string): https://...


5

Add a Copy Location Constraint on the Camera and set the object to follow as the Target. Check Offset to keep current offset and prevent camera snapping to the object tracked.


2

With Poisson disc + distance you can prevent the instances from intersecting:


1

The Path entry in the input variable section is highlighted in red. It means that what you have entered there is not a valid path. Replace the "Sound..." entry with a valid RNA path to solve your problem.


5

As Moonboots wrote, just use Follow path constraint and don't tap on "animate path". You can define your position by sliding the offset:


4

Quickest hacky way of doing this is to convert the curve into a mesh by selecting curve and go to Object > Convert > Mesh. Then turn on snapping with Snap To edge enabled and Snap With to Center. Make sure Transform Pivot Point is set to Median Point.


5

Frequently the order of the modifiers is important. In this case, the Subdivision modifier should be after the Array modifiers: If the four rounded outside corners are a problem then after the Array modifiers are applied supporting geometry should be created.


2

There is no need to parent your eyes to your body nor to join your objects. The only thing you have to do is to parent the eyes to their corresponding bones. First select the eye objects, then the armature, then ⎈ CtrlP → Set parent to armature deform with empty groups. Then with the eyes selected, switch to edit mode. For each eye, select its mesh, and in ...


4

Register the property per data type you want (Object, Camera, Light...) in register(). def register(): # Object property bpy.types.Object.your_object_property = bpy.props.IntProperty() # Scene property bpy.types.Scene.your_scene_property = bpy.props.IntProperty() # Camera property bpy.types.Camera.your_camera_property = ...


1

It looks like one of the objects was originally smooth shaded while the other was not. Select the joined object in object mode, Right Click and select Shade Smooth from the menu. Then go to the Properties editor → Object Data Properties and open the Normals panel and select Auto Smooth.


0

I Had the same problem and solved it by simply closing the Layout window (Tab 'Layout' > right click > 'Delete') and reopen it (Tab '+' > right click > 'Layout' - you might eventually want to reorder it to the front again). Save the file and you're done. Cheers! Note: The relevant collections were set to visible in both Layout and Modelling. The ...


3

Object.users_collection returns all collections associated with the object: https://docs.blender.org/api/current/bpy.types.Object.html#bpy.types.Object.users_collection, in this case a generator expression is a good choice. One-liner: >>> 'Collection' in (i.name for i in bpy.data.objects['Cube'].users_collection) True


3

Collection.objects returns all objects of the collection: https://docs.blender.org/api/current/bpy.types.Collection.html#bpy.types.Collection.objects and bool() converts the value into a Bool. One-liner: >>> bool(bpy.data.collections['Collection'].objects.get('Cube')) True


3

Since you know the name of the object and the name of the collection, there are (at least) two ways to create such an expression. Both start with obtaining the actual things from their names. One is more reliable than the other so I will only give it. object = bpy.data.objects["Cube"] collection = bpy.data.collections["Collection"] ...


1

You have an error in your Image Texture: You should change "Non-Color" to "sRGB".


0

I believe you should hide these collections using checkmark instead of your nested solution.


3

Ok i found it. All you need to do is put your collection into a collection, and make the highest collection non-rendered while keeping the baseline set to renderable.


0

Just set the "Offset" to 0 instead of -1 in the modifier. – FFeller


0

This is not knowledge, what i am writing here, just thoughts, as it might be in Blender as it is in e.g. programming languages. It is exactly as you wrote. If you copy an object with cloth modifier, you would "expect" that everything is "really" doubled. But is isn't. The reason for this that the developers try to "optimize" ...


1

You can prevent the camera view from being obscured by sending a raycast from the camera to check if any object/mesh is in-front of, or behind the camera view, which is the Z-axis of the camera. Here's a great tutorial exampling how to create and implement such a camera raycast for camera collision. Tutorial https://www.youtube.com/watch?v=Jim9W8B1KhU


3

The 3D view is currently in wireframe mode (1). Click on the white globe (2) to select solid view or press Z and select Solid from the Pie menu.


0

Thankyou @common_goldfish. Your comment combined with some feedback from someone else helped a lot. I didn’t follow exactly as you showed, but what you did gave my memory a good nudge as to how I could go about this. Copying the vertices of the HDMI port and then using the "snap to edge" function to keep the "New" HDMI port vertices in-...


0

One way: You can create reusable patches with both faces and vertices. 1.It is a neater operation if you create an empty rectangular face where you can copy your vertices. 2.Turn on vertices snapping 3.In edit mode, select faces and vertices, and duplicate a patch of your geometry with shift+d Press Y or other axis, to snap and move the patch over to the ...


0

I just updated / bumped Rheologic's stl export addon to work with blender 3.0.0 (tested on linux). Download and usage instructions here: https://rheologic.net/articles/blender-object-export-separate-stl/ Basically the addon allows you to export all selected meshes as separate stl files. The file names are the object names with an optional prefix, that can be ...


0

had the same problem, in the collection i had disable selection, but enable selection on the two object that i wanted to join so i got the error message posted above ver. 2.93


3

Duplicate vertices (vertices, that are exactly on top of one another) will subdivide differently. You can merge duplicate vertices with M > By Distance. If your normals are irregular after that operating, recalculate them ShiftN.


0

When importing to visualize, try selecting layer/appearance. It retains structure and parts are still one file.


Top 50 recent answers are included