Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

CG Python Academy (Free)

1k members โ€ข Free

2 contributions to CG Python Academy (Free)
Using Regex to Insert Variable Digits in Regular Strings
Hey all! I'm building a tool that will refresh the libraries of selected collections. I've almost got it but I want to be able to adjust the collection trailing number (present in all of my collections) so that it doesn't matter what 3 digits they are. Here is my example variable: colfilename = "SHW_" + a + "Rigging_v\\d{3}.blend" Whereas a = selected collection Blender returns the \\d{3} literally in the string. Returns: "SHW_CollectionName_Rigging_v\\d{3}.blend" I would expect it to return: "SHW_CollectionName_Rigging_v123.blend" #or any 3 digit number after the "v" I am using import re to allow for regular expressions. The tools I'm developing will use this or a similar method a lot as I continue so any suggestions on how to handle this are welcomed!
Abridged Python Tooltips in Blender
Hey all! First time writing here and following along slowly (just wrapped part 1!). I've been writing very simple code to get my head around bigger automation ambitions and have run into a small issue learning how to play around with certain functions inside of Blender. I use the python tool tips extensively to make super simple toggles, etc but every now and then I hit a tool tip that seems to be abridged using and ellipses (...) instead of the full code. For the most part I'm able to bumble around in the API docs or use the autocomplete to get to where I want but in this case I just cannot figure it out. Specifically I'm trying to exclude a collection from a render layer and cannot get there. I've posted a snip of the tool tip. If anyone has any advice on how to do this specific task (just the simple one line answer to exclude or include) or more specifically how to find the full length tool tip in these cases as they come up (I'm sure it'll happen again) that would be great! Thanks! P.S. Some sensitive data is marked out.
Abridged Python Tooltips in Blender
1 like โ€ข Feb 22
Victor, you did it! I spent at least 2-3 hours over the past few days sifting through and trying to find this. How did you go about doing it? Is it just your familiarity of the API or did you have to research this? Curious so I can have better research solutions when these things come up.
1 like โ€ข Feb 22
@Victor Stepanov definitely tried this however it's grey'd out for this specific command.
1-2 of 2
Barry Karnowski
2
15points to level up
@barry-karnowski-7189
Senior CG Supervisor/Head of CG

Active 123d ago
Joined Jan 2, 2025
Powered by