[SOLVED] Moving Property from Actor/Category to Pose Controls/Category
Vholf3D
Posts: 63
I'm using this as a guideline for making a script to move property around (change paths)
However, whenever I move a property from "Actor/SomeCategory" to "Pose Controls/SomeCategory" it always ends up under Actor, like so: "Actor/Pose Controls/SomeCategory"
property.setPath("Pose Controls/Some Category");
I tried with or without forward slash prefix. The property DOES move, but always within Actor. Properties are of type "Modifier/Pose".
If I move it manually within the UI, then it works, but if I then copy the resulting path in the UI to the script, it still falls back under "/Actor"
Is tere's anything I'm missing to put the property under /Pose Controls/ ?
Post edited by Vholf3D on
Comments
Well, I decided to create an alias instead of moving the property. Setting the path on the alias works as expected.
Redacted
Tank you sir! I'll be checking out your script as a reference. I am aware of the technical side of moving parameters, having to save the figure, etc. My only problem seems to be with the inconsistency (due to misuse on my part more likely) of the "DzProperty::setPath" method, which, given a path outside of the "Actor" property group, it will always be placed INSIDE of the actor property group.
EDIT: Oh, your script is encrypted, which is fine, I was hoping to dig in and check the usage of setPath in your script.
Redacted
Ohhh bingo!, using DzSceneHelper.setPropertyPath did the trick. Now I'm wonering what other methods I should be replacing for calls to the various helpers that I now found.
Thank you!