RNA_path_from_ID_to_property fails for pointcaches [thus ALT+click does as well...] #64573

Closed
opened 2019-05-14 00:20:13 +02:00 by John L. Gordon · 12 comments

I am a blender novice but cannot find out about this problem.
I am sorry if the problem is simply my lack of understanding and hope it does not take too much of your time to verify this issue.

System Information
Operating system: Windows 10 Pro 64-bit
Graphics card: 4095MB NVIDIA GeForce GTX 1080 (NVIDIA)

Blender Version
blender-2.80.0-git.0264d8390fa2-windows64 ( + all previous blender 2.8 tested to date)

Short description of error
A plane has cloth physics enabled.
end time in the (cloth physics) cache is changed to say 1000
Several duplicates of this are made.
Duplicates resort to 250 end time.
Cannot copy end time to selected duplicates either.
Only way to change end time for all duplicates is to do it one at a time manually.

Exact steps for others to reproduce the error
create a plane which is pinned at top so that it drops in the z direction
add physics cloth to this plane.
(I also enabled object (not self) collision but I don't think this is important).
Change the cache end time for the cloth to 1000
Duplicate the cloth (plane) several times
Then try to make the duplicates have a 1000 end time in the cache.

I am a blender novice but cannot find out about this problem. I am sorry if the problem is simply my lack of understanding and hope it does not take too much of your time to verify this issue. **System Information** Operating system: Windows 10 Pro 64-bit Graphics card: 4095MB NVIDIA GeForce GTX 1080 (NVIDIA) **Blender Version** blender-2.80.0-git.0264d8390fa2-windows64 ( + all previous blender 2.8 tested to date) **Short description of error** A plane has cloth physics enabled. end time in the (cloth physics) cache is changed to say 1000 Several duplicates of this are made. Duplicates resort to 250 end time. Cannot copy end time to selected duplicates either. Only way to change end time for all duplicates is to do it one at a time manually. **Exact steps for others to reproduce the error** create a plane which is pinned at top so that it drops in the z direction add physics cloth to this plane. (I also enabled object (not self) collision but I don't think this is important). Change the cache end time for the cloth to 1000 Duplicate the cloth (plane) several times Then try to make the duplicates have a 1000 end time in the cache.
Author

Added subscriber: @johnlgordon-4

Added subscriber: @johnlgordon-4

#74515 was marked as duplicate of this issue

#74515 was marked as duplicate of this issue

#64672 was marked as duplicate of this issue

#64672 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Just checking if I get this right:

  • How are you trying to achieve this?
  • Is this about selecting multiple objects and Alt+clicking cache end time to enter a new value?
Just checking if I get this right: - How are you trying to achieve this? - Is this about selecting multiple objects and Alt+clicking `cache end time` to enter a new value?
Author

I was initially simply trying to duplicate a cloth object with the cache end changed.
I had expected the updated value to be in the duplicated object, but it was the original 250.

I also tried to change the simulation end time before duplicating the object but that made no difference.

I have tried selecting one cloth and then the rest (because they are all in a single group).
I did not try alt clicking the end time, just altering it.
However, I have tried alt clicking the end time and altering it now and it still does not update the selected objects.

The balance of probabilities says that this is my mistake and I was waiting for updates to version 2.8.
However, I thought I should at least mention it with the release date approaching.
I am really sorry if I end up causing work for you for nothing.

Basically, I can’t change multiple cloth cache end times other than by changing each one, one at a time.

I was initially simply trying to duplicate a cloth object with the cache end changed. I had expected the updated value to be in the duplicated object, but it was the original 250. I also tried to change the simulation end time before duplicating the object but that made no difference. I have tried selecting one cloth and then the rest (because they are all in a single group). I did not try alt clicking the end time, just altering it. However, I have tried alt clicking the end time and altering it now and it still does not update the selected objects. The balance of probabilities says that this is my mistake and I was waiting for updates to version 2.8. However, I thought I should at least mention it with the release date approaching. I am really sorry if I end up causing work for you for nothing. Basically, I can’t change multiple cloth cache end times other than by changing each one, one at a time.
Philipp Oeser self-assigned this 2019-05-14 14:57:05 +02:00
Member

Can confirm Alt+clicking [easiest] doesnt work in this case.
This is because the path to the property on the pointcache cannot be resolved (RNA_path_from_ID_to_property fails).

[this should resolve to something like ob.modifiers['Cloth'].point_cache.frame_end but it doesnt...]

This is true for a couple of properties all around blender and can possibly be fixed [could be a bit tricky since pointcache is used in multiple places], will have a look...

As a workaround, you could just fire a small script:

import bpy

frame_end = 666

for ob in bpy.context.selected_objects:
    for mod_cloth in [mod for mod in ob.modifiers if mod.type == "CLOTH"]:
        mod_cloth.point_cache.frame_end = frame_end

I'll keep this report open for now and retitle so it is more obvious why this fails...

Can confirm Alt+clicking [easiest] doesnt work in this case. This is because the path to the property on the pointcache cannot be resolved (`RNA_path_from_ID_to_property` fails). [this should resolve to something like `ob.modifiers['Cloth'].point_cache.frame_end` but it doesnt...] This is true for a couple of properties all around blender and can possibly be fixed [could be a bit tricky since pointcache is used in multiple places], will have a look... As a workaround, you could just fire a small script: ``` import bpy frame_end = 666 for ob in bpy.context.selected_objects: for mod_cloth in [mod for mod in ob.modifiers if mod.type == "CLOTH"]: mod_cloth.point_cache.frame_end = frame_end ``` I'll keep this report open for now and retitle so it is more obvious why this fails...
Philipp Oeser changed title from can't copy or duplicate cloth cache start or end to RNA_path_from_ID_to_property fails for pointcaches [thus ALT+click does as well...] 2019-05-14 14:57:56 +02:00
Member

Added subscriber: @intrah

Added subscriber: @intrah
Philipp Oeser was unassigned by Dalai Felinto 2019-12-23 16:34:25 +01:00
Philipp Oeser self-assigned this 2020-03-11 12:27:19 +01:00
Member

Will check again

Will check again
Member

Added subscriber: @bowserlm

Added subscriber: @bowserlm

This issue was referenced by 28827b62f7

This issue was referenced by 28827b62f7777a51bb4899021b5248486d2a4687
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 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#64573
No description provided.