Method to get scene by name. #36061

Closed
opened 2013-07-08 21:53:28 +02:00 by Thomas Szepe · 15 comments
Member

%%%This patch adds the ability to get a KX_Scene object by name.

The getScene.pacht adds a new method getScene("name") to the logic module which returns a KX_Scene.
The getSceneDict.patch adds a new method getSceneDict() to the logic module which returns a dictionary of KX_Scenes.%%%

%%%This patch adds the ability to get a KX_Scene object by name. The getScene.pacht adds a new method getScene("name") to the logic module which returns a KX_Scene. The getSceneDict.patch adds a new method getSceneDict() to the logic module which returns a dictionary of KX_Scenes.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%I have set the the category.
Please can somebody change it form Python API to Game engine.%%%

%%%I have set the the category. Please can somebody change it form Python API to Game engine.%%%

Added subscriber: @solarlune

Added subscriber: @solarlune

Added subscriber: @Trixymoon

Added subscriber: @Trixymoon

Added subscriber: @mahalin

Added subscriber: @mahalin

Added subscriber: @AngusHollands-4

Added subscriber: @AngusHollands-4

Whilst I agree that the API misses these features, I believe it would be better to implement them as we already implement object lookups and sensor lookups. It would require using class attributes rather than methods.

Whilst I agree that the API misses these features, I believe it would be better to implement them as we already implement object lookups and sensor lookups. It would require using class attributes rather than methods.
Author
Member

I tried that, but without success. With the actual Python API skeleton it is not possible for me to add attributes to the basic modules like logic or render.

I tried that, but without success. With the actual Python API skeleton it is not possible for me to add attributes to the basic modules like logic or render.

Removed subscriber: @mahalin

Removed subscriber: @mahalin
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Any way on updating this for the current master if not we can archive this patch? Also can you add it to the differential tool.

Any way on updating this for the current master if not we can archive this patch? Also can you add it to the differential tool.
Member

never mind about the differential

never mind about the differential

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-09-16 19:30:12 +02:00

We have a phabdiff for this now, no need to keep it open.

We have a phabdiff for this now, no need to keep it open.
Sign in to join this conversation.
No Milestone
No project
No Assignees
7 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#36061
No description provided.