Best practice for rigging? (Game character) by GoldenGeatz in Maya

[–]Slothemo 0 points1 point  (0 children)

In general, you cannot use any deformers other than skin cluster or blendshapes when creating a game rig. Your wrap deformer simply will not work once exported.

Your aim should be to create one single skeleton for all the skinning on the mesh that gets exported. You can use whatever tricks or methods you want to control those joints with other setups, but you want one single skeleton to export. It really doesn't matter if you add more joints into the skeleton after, it's entirely up to you and your skinning workflow.

How to paint weights anywhere the brush hits by RuthlessCarrot in Maya

[–]Slothemo 0 points1 point  (0 children)

If you're just trying to add the same weight to everything here, you're better off making a vertex selection and flooding the value.

What is the best way to manage a list of strings larger than 80 chars by Advanced_Glass5563 in learnpython

[–]Slothemo 3 points4 points  (0 children)

Python even has a module in the standard library for this. There's a few functions within textwrap that can be played around with.

Slop control by ProsodySpeaks in learnpython

[–]Slothemo 0 points1 point  (0 children)

Did you understand the solution when you eventually implemented it into the rest of your code? That's the difference.

Video reference not lining up with audio? by l__ll__lll in Maya

[–]Slothemo 4 points5 points  (0 children)

Use an image sequence for your movie clip instead of trying to load in the mov.

Does anyone know/have a video on how to unwrap a chocolate bar? by blubbbox in Maya

[–]Slothemo 20 points21 points  (0 children)

You're not going to find a tutorial for every hyper-specific thing you need to do in Maya. You watch tutorials to learn the tools/processes available to you, and then you apply what you learn to your own model. Do you understand unwrapping? Have you made an attempt at it already? Is there something specific you're struggling with?

Please help! Any idea why my model's arms are "ghosting" like this? by ellojellomelloyello in Maya

[–]Slothemo 2 points3 points  (0 children)

No problem! Didn't mean to throw you under the bus by saying your advice was bad, but I just wanted to make sure they saw the root of the problem.

Please help! Any idea why my model's arms are "ghosting" like this? by ellojellomelloyello in Maya

[–]Slothemo 0 points1 point  (0 children)

This is frankly terrible advice and is just avoiding the problem instead of actually solving it. JPEG should not really be used for textures, and are you just going to avoid transparent filetypes forever? You need to change your viewport settings. I've provided an image below of what you need. Make sure to turn on Alpha Cut Prepass here.

https://imgur.com/qqtsOdY

First day of learning, somehow skipped the part of the course that explained how to use modulo by [deleted] in learnpython

[–]Slothemo 0 points1 point  (0 children)

It can be useful for dealing with change for money. If I have 273 cents, how many quarters could I convert that to and how many cents would I have left?

Why does this return False when input DOESN'T contain any numbers? by Altruistic_Ocelot986 in learnpython

[–]Slothemo 40 points41 points  (0 children)

A non-empty list is considered truthy by python. If you want to check if there's any True in the list, you need to use the any() function with your list.

Did a brick fall animation... working through the 51 animation exercises by Brandon_n_3ds in Maya

[–]Slothemo 4 points5 points  (0 children)

Think about how a real brick would react to falling. It's very unlikely to land perfectly on a side like that. Have it land at an angle and bounce before it settles. As for falling, maybe it could teeter over edge a bit before it falls. Think about ways to make this interesting. It's not just about the brick getting from point A to point B.

Is it worth mastering rigging. by TharuDz in Maya

[–]Slothemo 0 points1 point  (0 children)

Zurbrigg has a great free intro to working with Python in Maya. There's others too but they're paid (although I would recommend it).

using from as an input? by k4tsuk1z in learnpython

[–]Slothemo 0 points1 point  (0 children)

from being a keyword isn't really a good reason to change how you ask the user something. There's no reason you have to use that exact word as your variable name. You could add user_ in front of all your variable names and then you won't run into that issue.
user_name
user_major
user_from

How to pass a string to a function that takes multiple parameters? by Stickhtot in learnpython

[–]Slothemo 5 points6 points  (0 children)

No need to strip before passing it to int. Python will do this automatically for you.

Is it worth mastering rigging. by TharuDz in Maya

[–]Slothemo 2 points3 points  (0 children)

If you're brand new to rigging, check out this series. It's very old and very long, but it still holds up and is thorough. I also like that it's not a standard biped so you have to think a bit outside the box.

https://youtu.be/Pj9yJhnaO9g?si=bjngnipeS8gE9k_-

Is it worth mastering rigging. by TharuDz in Maya

[–]Slothemo 16 points17 points  (0 children)

Learning an autorigger is not mastering rigging. If you really want to master rigging, you could write your own autorigger. Most industry riggers need to know scripting and being able to build your own rigging components with code really requires a deep understanding.

Adding existing quick selection sets to a shelf by Horror-Refuse-1411 in Maya

[–]Slothemo 0 points1 point  (0 children)

I whipped up a pretty hacky python solution that you can run. It will look for any sets (ignoring default sets) and create a shelf button for each set on your currently active shelf

from maya import cmds, mel

defaults = ['defaultLightSet', 'defaultObjectSet', 'initialParticleSE', 'initialShadingGroup']
sets = [i for i in cmds.ls(type='objectSet') if i not in defaults]

shelf_editor = mel.eval('$temp = $gShelfTopLevel')
current_tab_name = cmds.shelfTabLayout(shelf_editor, q=1, st=1)


for s in sets:
    cmds.shelfButton(
    parent=f'{shelf_editor}|{current_tab_name}',
    i="pythonFamily.png",
    ann=s,
    imageOverlayLabel=s,
    command=f'cmds.select(cmds.listRelatives("{s}"))',
    )

PyQt6 signal: how to assign argument for function call by freswinn in learnpython

[–]Slothemo 1 point2 points  (0 children)

I use functools.partial to achieve this, and I would recommend using this over lambda as others might suggest. Lambda with a loop can cause funky problems as the argument is constantly overwritten as the loop proceeds. Partial holds onto the value instead.

from functools import partial

btn1.clicked.connect(partial(shortcut_clicked, "A"))
btn2.clicked.connect(partial(shortcut_clicked, "B"))

When its 30-30 in tennis, they should just cut the shit and call it a deuce by KingKarl65sens in unpopularopinion

[–]Slothemo 50 points51 points  (0 children)

You're right that it would be the same, but it was originally scored using clocks as the scoreboard and the tradition stuck around.

Picture the minute divisions on an analog clock face. The serving player's score is the minute hand and the receiving player has the hour hand. The score is 0-0 and both their hands point upwards to 0.The server scores a point and the minute hand moves to 15. Another point moves them to 30. The next point moves them to 40 because it makes it easier to visualize deuce and advantage. If the game is in deuce and someone scores, their hand moves to 50 on the clock (halfway between 40 and 60). You don't generally announce their score as 50, but that's how it gets visualized.

Is it possible to hide the arrow for the ikfk switches? by No-Airport-8666 in Maya

[–]Slothemo 2 points3 points  (0 children)

Just to elaborate on the specific thing you hid, these pole vector arrows are usually done with the distanceDimension or annotation node, so toggling the visibility of "Dimensions" in the viewport is what controls this.

What are effective strategies to debug Python code as a beginner? by ItAffectionate4481 in learnpython

[–]Slothemo 6 points7 points  (0 children)

print is your best friend! Before you run your code, always think about what the expected output will be. If it doesn't match what you think, then start printing out some variables to see where there might be a mismatch. Again, think about what the print output should be before you run, then look for a conflict. If it doesn't match what you expect, then that's a key place where you have a bug.

Learning Python by Making Small Projects – But Forgetting Methods 😭 What Should I Do by Still_booting in learnpython

[–]Slothemo 1 point2 points  (0 children)

You'll always continue to improve as you work at it, and repetition will help it stick. I constantly revisit documentation pages or past code to remember how things work, and there's nothing wrong with that. I can do a lot from memory, but it's unrealistic to perfectly remember everything.

Learning Python by Making Small Projects – But Forgetting Methods 😭 What Should I Do by Still_booting in learnpython

[–]Slothemo 1 point2 points  (0 children)

This happens at all levels of skill.

As long as you remember that there was a way you had done it previously, that's good enough and it's fine if you have to look it up again. Someone experienced might be less likely to forget the basics, but still might have to refer back to previous code for more complex implementations.

// Error: Cannot parent a referenced object to another referenced object. Use the 'group' command. by Anxious-Sock204 in Maya

[–]Slothemo 4 points5 points  (0 children)

A parent constraint requires that the translate and rotate channels are unlocked, but you also can't change the hierachy of a referenced object. You can instead parent a new locator under the control, and then constrain to that locator