Re: [Bf-committers] Getting the associated Blender object name from a uiBut object

2017-08-08 Thread Matthew Keller
For the record, I wasn't suggesting that you put your functionality in the method that I linked you to but rather update the method you've added to follow a similar approach to the method specified (i.e. get the objects directly from the scene as opposed to iterating over the buttons.) Glad that

Re: [Bf-committers] Getting the associated Blender object name from a uiBut object

2017-08-07 Thread The Simple Carnival
That worked! Thank you, Lukas. -Jeff On 8/7/2017 9:50 PM, Lukas Stockner wrote: > The PointerRNA contains two data pointers, in your case, you'll probably want > to use ptr.id.data - while it's a void*, it will point to some ID datablock, > so ((ID*)(ptr.id.data))->name should contain "OB". >

Re: [Bf-committers] Getting the associated Blender object name from a uiBut object

2017-08-07 Thread The Simple Carnival
Actually, I take that back. It's pretty messy to handle that from the Restrict View section because it would mean overriding the ability to turn on/off the view/select/render icons. Plus, out of the available modifier keys (shift, alt, oskey -- ctrl is already taken), only shift appears to

Re: [Bf-committers] Getting the associated Blender object name from a uiBut object

2017-08-06 Thread The Simple Carnival
Hi Matt -- Thanks for the tip. I was able to get a proof-of-concept working going off of that code instead of dealing with the uiBut objects. I'll dig more into this, but I think I can make it work. -Jeff On 8/6/2017 5:15 PM, Matthew Keller wrote: > Hi Jeff, > > Not sure if you've seen this,

Re: [Bf-committers] Getting the associated Blender object name from a uiBut object

2017-08-06 Thread Matthew Keller
Hi Jeff, Not sure if you've seen this, but there is a way to perform the 'Restrict View' action in the ui recursively by pressing Ctrl while clicking. This is the function that enables that behavior as far as I can tell:

[Bf-committers] Getting the associated Blender object name from a uiBut object

2017-08-06 Thread The Simple Carnival
Hello -- I recently discovered that it's possible to automate the render or view capability of an object via the Outliner: https://blenderartists.org/forum/showthread.php?237747-How-can-i-hide-object-during-animation This is a fantastic feature, but I need a way to select multiple objects