Search found 12 matches

by orimouse
Mon Jul 22, 2013 6:42 pm
Forum: Python
Topic: Modify RMB context sensitive menus
Replies: 3
Views: 1526

That's what I feared, but at least I won't spend much time to try to modify it.
Thank you for your answer :)
by orimouse
Thu Jul 18, 2013 6:00 pm
Forum: Python
Topic: Selecting Object
Replies: 3
Views: 979

It's quite difficult to give you a precise answer without more information, but you can simply define a variable such as :

Code: Select all

obj = bpy.context.object
and put it in each function or class where your current active object may change.
by orimouse
Wed Jul 17, 2013 6:30 pm
Forum: Python
Topic: Modify RMB context sensitive menus
Replies: 3
Views: 1526

Here's a simple script to explain the problem : import bpy from bpy.props import * # # Store properties in the active object # def initObjectProperties(obj): bpy.types.Object.TestFloat = FloatProperty( name = "Float", description = "Enter a float", default = 5.25, min = -100, max = 100) initObjectPr...
by orimouse
Tue Jul 16, 2013 12:34 am
Forum: Python
Topic: Modify RMB context sensitive menus
Replies: 3
Views: 1526

Modify RMB context sensitive menus

Hi, I have 2 little questions about RMB menus :oops: When I create a panel with properties, i can add -to a float property for exemple- a keyframe or driver, or add to keying set etc... with RMB menu. But I don't want the user to have access to this. So the first question is : How can I disable thos...
by orimouse
Sun Jun 02, 2013 1:05 am
Forum: Python
Topic: dropdown list (EnumProperty) refreshed when object selected
Replies: 6
Views: 4616

Wow that's perfect ! :D

I'm pretty new to all this and I love exploring and learning python scripting but the possibilities are so huge !!!

I was desperatly looking for some nice examples to understand the concept!

Really, many thanks for all your help!

:D
by orimouse
Sat Jun 01, 2013 4:24 pm
Forum: Interactive 3d
Topic: BGE Memory leak ?
Replies: 2
Views: 6402

OK everything went back to normal in v.2.67b :D
by orimouse
Sat Jun 01, 2013 3:44 pm
Forum: Python
Topic: dropdown list (EnumProperty) refreshed when object selected
Replies: 6
Views: 4616

Hi, I tried without the () and I got the following ValueError bpy_struc "Scene" registration error: 'MyEnum' could not register With () it works but doesn't refresh... I've found this old thread and I'm now even not sure that EnumProperty can do what I want... http://blenderartists.org/forum/showthr...
by orimouse
Sat Jun 01, 2013 2:09 am
Forum: Python
Topic: dropdown list (EnumProperty) refreshed when object selected
Replies: 6
Views: 4616

Hello, First, thank you for the link ! So here's the code I got for my example (the scene contains 2 objects, a 'Cube' and a 'Sphere'): import bpy from bpy.props import * properties = { 'Cube': [('a', 'a', 'a'), ('b', 'b', 'b'), ('c', 'c', 'c')], 'Sphere' : [('d', 'd', 'd'), ('e', 'e', 'e'), ('f', '...
by orimouse
Fri May 31, 2013 2:47 pm
Forum: Python
Topic: dropdown list (EnumProperty) refreshed when object selected
Replies: 6
Views: 4616

dropdown list (EnumProperty) refreshed when object selected

Hi everyone, I'm struggling for a few days with the EnumProperty... Hope someone could give me a hint ! Description : I have a scene with 2 or more objects. As the script runs, a panel appears with a dropdown list containing some properties of the current active object. Problem : When I select anoth...
by orimouse
Thu May 23, 2013 4:21 am
Forum: Interactive 3d
Topic: BGE Memory leak ?
Replies: 2
Views: 6402

I've just tried to launch the embedded player in 2.66a with the same file. BGE works really fine and smoother, and memory use doesn't exceed 500 Mo, all going back to normal when stopped. Probability of a memory management problem in version 2.67a : very high xD But I'll still waiting for confirmati...
by orimouse
Thu May 23, 2013 3:43 am
Forum: Interactive 3d
Topic: BGE Memory leak ?
Replies: 2
Views: 6402

BGE Memory leak ?

Hello everyone, I'm not sure, but with version 2.67a BGE seams to have a memory problem... 1) I launch my blend file -> 400 Mo memory, seams fair 2) Testing the scene hitting "P" -> 3000 Mo memory, huh ok 3) Using ESC to quit BGE Embedded Player -> still round 3000 Mo memory used... And if I test th...
by orimouse
Wed Mar 20, 2013 1:49 am
Forum: Interactive 3d
Topic: Game Engine Issues
Replies: 104
Views: 139977

Bug ?

Hello everyone, Don't know where to post this but it seems to be a small "bug"... I did a search but couldn't find any post mentionning it. In logic brick editor, the Actuator list doesn't show the Armature actuator . I have to select another one, action actuator for exemple, and when I modify it, t...