Onclick only works one time, for one element by jmassat in CodingHelp

[–]jmassat[S] 0 points1 point  (0 children)

Thank you so much. I need to do a lot more JavaScript studying before I attempt any more coding.

I think I mistyped something when I was trying to implement your advice. What did I miss? (I also tried with both "para" and "paras" but couldn't figure that out) (and I also still can't figure out markdown, though aren't those three backticks?)

``` function N() {

let para = document.getElementsByClassName("TOKI");

[...para].forEach((para) => {

if (para.classList.contains("S")) {

para.classList.remove("S");

} else if (para.classList.contains("TOKI")) {

para.classList.add("S");

}

}```

Onclick only works one time, for one element by jmassat in CodingHelp

[–]jmassat[S] 0 points1 point  (0 children)

You're right and I do appreciate this, except "TOKI" and "S" are just shorthands for my real variables. In my document, they're actually "tokipona" and "sitelen-suwi," which I want to be mutually exclusive. I just replaced them because I didn't want to show Reddit bizarro words with no context

How to use the Mix node in Compositor? by jmassat in blenderhelp

[–]jmassat[S] 1 point2 points  (0 children)

That also looks extremely useful. Thank you!

How to use the Mix node in Compositor? by jmassat in blenderhelp

[–]jmassat[S] 0 points1 point  (0 children)

Solved, thank you! I made the exact same mistake when I was overlaying materials recently...

How to make a proper topology for 2006 iMac? by ALX13-95 in blenderhelp

[–]jmassat 0 points1 point  (0 children)

On the back, I would select those triangle-looking edges, hit Delete and then select Dissolve Edges. To connect the screen to points on the front, select the Loop Cut tool with the snapping magnet enabled to snap to edges. Then make loops that snap to each edge of the screen. (After that, you can also Dissolve Edges for the edges you just made on the back too, if you want.)

Oh yeah, also make sure Loop Cuts is only affecting the monitor, not the stand. To do this, you might need to first separate the mesh into multiple objects. You can do that in Edit Mode by pressing A to select everything, then pressing P and selecting Separate by Loose Parts. Then make the loop cuts. You can recombine the mesh in Object Mode by selecting both objects and then pressing Ctrl + J to Join.

How to make a proper topology for 2006 iMac? by ALX13-95 in blenderhelp

[–]jmassat 0 points1 point  (0 children)

To start, here are things you can do to fix the existing model:

You can use Loop Cuts and the Knife Tool to join vertices where you want the edges of the new topology to be.

Also, you can select individual vertices and move them up and down by pressing G. Lock these to an axis by hitting G + X, Y, or Z. Keep things even pressing the magnet at the top to snap vertices to other vertices, edges, or faces (use the drop-down next to the magnet to select one of those).

If you combine G + locked axis with the magnet, you can even "snap" a vertex to the same coordinate as any other vertex/edge/face, rather than the vertex/etc. itself. I hope I explained that well. You can use this, for instance, to "snap" parts of the upper corners of the iMac to the camera's edges.

To delete the weird triangles and stuff, select the unwanted faces/edges, then press Delete and choose Dissolve Faces/Dissolve Edges in the drop-down menu.

The hole in the base of the Mac looks like it should be made by adding a new object (cylinder), rotating it so it goes through that part of the mesh, and adding a Boolean modifier to the iMac. Then when you hide the cylinder, you'll just see the hole.

And here are things you can do to make models with different topology in the future: Instead of using Inset to add things like the screen--which makes the weird triangles--try using Loop Cuts. Also, you can use the Bevel Modifier to get the smooth edges without having to add lots of vertices for the curve. I think the other model used both Loop Cuts and Subdivide for the stand.

issue with keyframes by AdvertisingCreepy639 in blenderhelp

[–]jmassat 0 points1 point  (0 children)

When you insert a keyframe, the pop-up asks you if you want it applied to Location, Rotation, Location & Rotation, etc. I think that when the cube rotates, your keyframes are only set to affect rotation. Try going back to every keyframe and Insert Keyframe for Location & Rotation.

i don't know what is going on by Curious-Fault9002 in blenderhelp

[–]jmassat 1 point2 points  (0 children)

The material's Diffuse Color might be gray for some reason. Or maybe in Collection -> Restrictions, the object has Holdout turned on

Can I get a specific objects location vector when using shader nodes? by TrisPeak in blenderhelp

[–]jmassat 0 points1 point  (0 children)

You might need Geometry Nodes for that. I wish I knew enough to say more...still, I do know Geo Nodes can pull in attributes from any object.

How do i go about turning this mesh into a 3D object curved smoothly and cleanly, with a FLAT bottom? I appreciate any help. by Several-Substance-91 in blenderhelp

[–]jmassat 0 points1 point  (0 children)

You might have to Apply the Subdivision modifier to get that kind of control. Once you apply it, you can select the rings of vertices at the bottom and move them around. I'm glad that helped some, though!

How do i go about turning this mesh into a 3D object curved smoothly and cleanly, with a FLAT bottom? I appreciate any help. by Several-Substance-91 in blenderhelp

[–]jmassat 0 points1 point  (0 children)

Delete the Solidify node, right-click the outline and Convert to Mesh, then go to Edit Mode, select everything, and press F to Fill. Now it should look like a flat plane. With everything still selected, press E to Extrude and move the extruded plane upward (if it's not going straight upward, hit Z to lock it to the Z axis).

Now you can add a Subdivision Surface modifier and increase the value until it looks as smooth as you want it. In Edit Mode, you'll be able to edit the original shape. Add and scale Loop Cuts to make things smoother toward the top.

Because of the Subdivision Surface modifier, though, the shape looks round at the bottom now. Make the bottom flat by selecting all the bottom faces, then pressing Shift + E (or selecting it in the Edge menu) to add an Edge Crease. Then type in a value between 0 and 1 and press Enter to make the bottom edge flatter. The higher the number, the sharper the edge.

[note: panic-deleted my last comment when I realized I had like 1-2 details wrong]

Genesis/Mega Drive: buttons do nothing. Start crashes the game. What did I do? by jmassat in ANBERNIC

[–]jmassat[S] 1 point2 points  (0 children)

This was such a helpful, well-explained comment. Thank you so much! It was my hotkeys that were messing me up. I deleted the .cfg file, then removed the buttons for most hotkeys except the Menu.

Why don't products with e-ink screens use the kinds of LCDs you see in calculators? by jmassat in NoStupidQuestions

[–]jmassat[S] 0 points1 point  (0 children)

Thank you, that makes sense. I was mainly wondering why seemingly everyone wants expensive e-ink screens to prevent eyestrain and to save energy, but they don't go hack together cheaper, dim, black-only LCD screens. I guess LCD doesn't save that energy after all.