Figure Metrics - No Dialog [SOLVE]
laichunh
Posts: 12
As the title said, does anyone can use the script to create a new Genesis 8 Female by using two json file?
below is the document i am talking about.
I do try JSON.stringify('json') but could not work.
Any comments will be appreciate!
Post edited by laichunh on
Comments
What are you wanting to do? Load a figure and then run the Figure Metrics script on it?
Thanks for you reply!!
Yes , I want to load a metric and run the figure metrics script on it. Actually, I do not want to manually adjust the figure, I want given variables and automatically apply variables on the figure. Therefore, I use the method which write in this website to try it.
The code below is in the website. and I thought it can use "configuration" to config the figure and use "measurements" to ajust the figure.
Are you applying the measure nodes wearables preset to your figure before rtrying to invoke the Figure Metrics script?
I think I did not. I did not remember I am using wearables preset. Currently, I am using the basic Genesis 8 Femal. It only contains four parameters in the Figure Metrics panel. In the future, I want to use the advance Genesis 8 Femal which contains 25 parameters. I'll check it accurately and reply again to you when I back to home.
UPDATE:: I do applying the measure nodes wearables preset to my figure brfore invoke the Figure Metrics script. Also, I update the error message.
oh Yes, I did apply the measure nodes wearables preset to my figure brfore invoke the Figure Metrics script
and this is an error message show me it cannot find.
Does it work if manually applied?
Yes, It work if I manually apply! but don't know why it cannot use the script to control it.
Have you saved a configuration preset named Genesis8Female? That is what it is looking for.
Yes I have saved configuration preset named Genesis8Female.
this is the code that I write in my script.
Then I print out the
Configuration path:
C:/Users/ChunhaoLai/AppData/Roaming/DAZ 3D/Studio4/resources/Figure Metrics/Presets/Configurations/Genesis8Female
Measurement path:
Actually, I am not sure what we are going to put the file path or the json string after "configuration" and "measurements". However, I tried it both of them and could not work.
The code below is using the json format string to assig to "configuration"
I attach my path
If I am reading the script correctly, you are meant to pass only the sub folder name - Genesis2Female or whatever - not try to include the location within the AppData folder. I think you are sending the full path to Figure metrics, which it then appends to the relative path and produces nonsense.
Edited to add: and just after I received a note Rob had posted:
Oh God!!! It works.
You saved my day!!! I don't even have the words to thank you!!
Now, I can move on to figure out how to adjust on 25 parameters preset.