Proposed extensions to Property Chart addon #34624

Closed
opened 2013-03-13 10:45:41 +01:00 by Satish Goda · 14 comments

Group: Unstable (example)

%%%Hello Folks.

I started learning bpy API couple of weeks back and found that the Property Chart addon is very useful to investigating rna_type properties. While using the addon extensively, i needed some features for saving and loading presets and also an ability to have quick access to object properties to be added to the property chart. I went ahead and mocked up the idea. You can view the following youtube video that I recorded demonstrating my experiments.

http://www.youtube.com/watch?v=3ei6--0liE8

Have also attached a demo .blend file and diff.

I also made modifications to existing methods, as I was experimenting with the API.

Please let me know what you think. Thank You.

Cheers,
Satish.

%%%

**Group**: Unstable (example) %%%Hello Folks. I started learning bpy API couple of weeks back and found that the Property Chart addon is very useful to investigating rna_type properties. While using the addon extensively, i needed some features for saving and loading presets and also an ability to have quick access to object properties to be added to the property chart. I went ahead and mocked up the idea. You can view the following youtube video that I recorded demonstrating my experiments. http://www.youtube.com/watch?v=3ei6--0liE8 Have also attached a demo .blend file and diff. I also made modifications to existing methods, as I was experimenting with the API. Please let me know what you think. Thank You. Cheers, Satish. %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%Hi Satish, I checked on the patch,
and while the functionality is definitely an improvement, there are a few things Im not sure about regarding the changes you made.

Some comments from checking the patch...

  • what are the changes to obj_prop_get() needed for?
  • agree with your comment in the video: using blenders presets are worth looking into.
  • the buttons are very long/wordy, for eg, the button to add a new property could just be a '+' icon.
  • adding a new property can be made to work like the spacebar operator search menu (give give you some pointers if you need).

Id prefer to add these in as separate patches, eg

  • Add presets.
  • Add '+' button to select new properties.
  • Other UI changes/improvements.
    %%%
%%%Hi Satish, I checked on the patch, and while the functionality is definitely an improvement, there are a few things Im not sure about regarding the changes you made. Some comments from checking the patch... - what are the changes to obj_prop_get() needed for? - agree with your comment in the video: using blenders presets are worth looking into. - the buttons are very long/wordy, for eg, the button to add a new property could just be a '+' icon. - adding a new property can be made to work like the spacebar operator search menu (give give you some pointers if you need). Id prefer to add these in as separate patches, eg - Add presets. - Add '+' button to select new properties. - Other UI changes/improvements. %%%
Author

%%%Hello Campbell.

This is exactly the feedback I was looking for.

> what are the changes to obj_prop_get() needed for?

I was just testing to see if using path_resolve gives the same functionality. I stumbled across that method by accident and to test it, modified your method. We can roll it back to your version.

> agree with your comment in the video: using blenders presets are worth looking into.

I am going to work on that today.

> the buttons are very long/wordy, for eg, the button to add a new property could just be a '+' icon.

Agreed.

> adding a new property can be made to work like the spacebar operator search menu (give give you some pointers if you need).

Yes, that would be great. I am eager to some pointers.

Also, I was wondering if wildcards can be supported in the search menu, so that i can choose multiple properties at once.

> Id prefer to add these in as separate patches, eg

  • Add presets.
  • Add '+' button to select new properties.
  • Other UI changes/improvements.

Sounds good to me. I can do that.

Thank you.
Satish.%%%

%%%Hello Campbell. This is exactly the feedback I was looking for. ## > what are the changes to obj_prop_get() needed for? I was just testing to see if using path_resolve gives the same functionality. I stumbled across that method by accident and to test it, modified your method. We can roll it back to your version. ## > agree with your comment in the video: using blenders presets are worth looking into. I am going to work on that today. ## > the buttons are very long/wordy, for eg, the button to add a new property could just be a '+' icon. Agreed. ## > adding a new property can be made to work like the spacebar operator search menu (give give you some pointers if you need). Yes, that would be great. I am eager to some pointers. Also, I was wondering if wildcards can be supported in the search menu, so that i can choose multiple properties at once. ## > Id prefer to add these in as separate patches, eg - Add presets. - Add '+' button to select new properties. - Other UI changes/improvements. Sounds good to me. I can do that. Thank you. Satish.%%%
Author

%%%I started studying Blender's Presets architecture. Tracked the .py files where the abstract API and examples are defined.%%%

%%%I started studying Blender's Presets architecture. Tracked the .py files where the abstract API and examples are defined.%%%
Author

%%%Added Presets feature to the existing property chart addon.

Writing Preset: 'C:\Users\lenovo\AppData\Roaming\Blender Foundation\Blender\2.66\scripts\presets\sequencer\properties\default.py'
Writing Preset: 'C:\Users\lenovo\AppData\Roaming\Blender Foundation\Blender\2.66\scripts\presets\sequencer\properties\frames.py'
Writing Preset: 'C:\Users\lenovo\AppData\Roaming\Blender Foundation\Blender\2.66\scripts\presets\object\properties\material.py'
Writing Preset: 'C:\Users\lenovo\AppData\Roaming\Blender Foundation\Blender\2.66\scripts\presets\object\properties\rna_type_1.py'

Only issue is that, when switching between 3Dview and Sequencer, the Menu name does not change. Its because of the way I implemented only one menu class. I can create two menu types and get it working, but looking for alternatives. Any suggestions?%%%

%%%Added Presets feature to the existing property chart addon. Writing Preset: 'C:\\Users\\lenovo\\AppData\\Roaming\\Blender Foundation\\Blender\\2.66\\scripts\\presets\\sequencer\\properties\\default.py' Writing Preset: 'C:\\Users\\lenovo\\AppData\\Roaming\\Blender Foundation\\Blender\\2.66\\scripts\\presets\\sequencer\\properties\\frames.py' Writing Preset: 'C:\\Users\\lenovo\\AppData\\Roaming\\Blender Foundation\\Blender\\2.66\\scripts\\presets\\object\\properties\\material.py' Writing Preset: 'C:\\Users\\lenovo\\AppData\\Roaming\\Blender Foundation\\Blender\\2.66\\scripts\\presets\\object\\properties\\rna_type_1.py' Only issue is that, when switching between 3Dview and Sequencer, the Menu name does not change. Its because of the way I implemented only one menu class. I can create two menu types and get it working, but looking for alternatives. Any suggestions?%%%
Author

%%%Attached: system_property_chart_with_presets.diff%%%

%%%Attached: system_property_chart_with_presets.diff%%%

%%%Committed r4373. (with some very minor changes)
Made the preset dirs "system_property_chart_view3d", "system_property_chart_sequencer" so its more clear who owns the presets.

Keeping the ticket open so other features from the original patch can be submitted here.%%%

%%%Committed r4373. (with some very minor changes) Made the preset dirs "system_property_chart_view3d", "system_property_chart_sequencer" so its more clear who owns the presets. Keeping the ticket open so other features from the original patch can be submitted here.%%%
Author

%%%Sounds good to me. Will work on further patches and update the tracker.

Thank You.%%%

%%%Sounds good to me. Will work on further patches and update the tracker. Thank You.%%%
Author

Thanks for keeping this open even thought there was not much activity. I got busy with personal life and some crazy things happening at work. Things are settling down and I will look into the other features now.

  • Satish.
Thanks for keeping this open even thought there was not much activity. I got busy with personal life and some crazy things happening at work. Things are settling down and I will look into the other features now. - Satish.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Campbell Barton was unassigned by Aaron Carlisle 2015-08-24 02:13:45 +02:00
Aaron Carlisle self-assigned this 2015-08-24 02:13:45 +02:00
Member

@ideasman42 is this still useful?

@ideasman42 is this still useful?
Aaron Carlisle removed their assignment 2015-08-24 02:15:25 +02:00
Campbell Barton was assigned by Aaron Carlisle 2015-08-24 02:15:25 +02:00
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Closing as archived.
@SatishGoda fell free to create a new task if this addon is still valid & developed.

Closing as archived. @SatishGoda fell free to create a new task if this addon is still valid & developed.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#34624
No description provided.