Digital Art Zone

 
     
Question regarding URI format in DSON
Posted: 15 July 2012 04:12 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRank
Total Posts:  338
Joined  2003-10-09

You have to keep reading beyond the first section. Granted, reading it again, we probably could polish the wording to make it more clear, but the information is there…

The second colon is described in the DSON File Format Specification > Asset Addressing > Object References section.

The @selection tag is described in the DSON File Format Specification > Asset Addressing > Instance References > Node Path section.

-Rob

 Signature 

- Documentation Center
- Install Manager
- DAZ Studio 4.x
- DSON Importer
- DSON File Format Specification

Profile
 
 
Posted: 15 July 2012 04:55 PM   [ Ignore ]   [ # 4 ]
New Member
Total Posts:  2
Joined  2008-07-06

Beyond the first section, you say? No kidding. If I have questions about your product in the future I’ll be sure to do the tactful thing and just keep my big mouth shut.

I believe my confusion stemmed from the fact that in the first part of the document, it shows the query section (denoted by “?”) occurring before fragments (”#”), just like in a normal URI. But in the Object References section (which I did read), we see the “#” symbol as part of the path, before the query. This reversal was what confused me.

Profile
 
 
Posted: 15 July 2012 07:22 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRank
Total Posts:  338
Joined  2003-10-09

There really is no need for the snarky response.  You asked a question, I provided an answer.  Perhaps not the one you were looking for, but an answer nonetheless.  I even went so far as to admit that the documentation could do for clarification, after having read it again…  I agree that the documentation on order/placement of the # and ? symbols IS confusing.  I’ve already fired off an email to the team (prior to my initial response) indicating that we need to discuss/clarify the Asset Addressing documentation on Monday morning (its Sunday evening here) and referenced this thread.

Your first post does not indicate that you have read beyond the first section and I cannot simply assume you have, given the number of times I’ve been asked questions by those who seemingly have not read much beyond the first sentence on a page let alone the first section.  Your first post indicates that you are confused by the existence of a second colon… which, as I pointed out in my initial response, is described just beyond the first section, in the Object References section on the same page you linked to.  Perhaps you missed it or perhaps you thought it was a typo (both are easily possible), I don’t know… but there are two colons in the structure example in that section…

[<scheme>:/]<node_path>:<file_path>#<asset_id>[?<property_path>] 

... and not because I’ve changed it (see the revisions for yourself).  Your comments regarding the “@selection/lBigToe” portion being part of the scheme is what caused me to think you hadn’t read the Object References section… either skimming past it (in the case that @selection is described in a different/later section) or not reading that far yet (in the case that @selection was intuitive to you).

-Rob

 Signature 

- Documentation Center
- Install Manager
- DAZ Studio 4.x
- DSON Importer
- DSON File Format Specification

Profile
 
 
Posted: 16 September 2012 12:15 PM   [ Ignore ]   [ # 6 ]
Power Member
Avatar
RankRankRank
Total Posts:  1300
Joined  2009-10-27

Hi Rob, I fail to see how to efficiently use the SDK to produce presets with the DSON format.
I see no high level routines that would allow, for instance, to save a pose preset for a certain object available in the scene.
I mean, do we have to procedurally build those files from scratch?

 Signature 

Alessandro’s Store
Blog
LAMH FB

Profile
 
 
Posted: 16 September 2012 09:54 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRank
Total Posts:  338
Joined  2003-10-09

Several examples are posted in the Scripting > API Reference > Samples > File Input/Output > Asset IO Save Filters section.

-Rob

 Signature 

- Documentation Center
- Install Manager
- DAZ Studio 4.x
- DSON Importer
- DSON File Format Specification

Profile
 
 
Posted: 17 September 2012 01:56 AM   [ Ignore ]   [ # 8 ]
Power Member
Avatar
RankRankRank
Total Posts:  1300
Joined  2009-10-27
rbtwhiz - 16 September 2012 09:54 PM

Several examples are posted in the Scripting > API Reference > Samples > File Input/Output > Asset IO Save Filters section.

-Rob

Rob, thank you very much. How come I missed that page, it’s full of a ton of nice scripts!
However, I’ve tried the Pose and also the Shape Preset Save scripts, and it seems like the instruction below is ineffective, because whe I run the script the output dialog is always showing up:

oSettings.setBoolValue( “RunSilent”, true );

 

 Signature 

Alessandro’s Store
Blog
LAMH FB

Profile
 
 
Posted: 17 September 2012 02:55 AM   [ Ignore ]   [ # 9 ]
Power Member
Avatar
RankRankRank
Total Posts:  1300
Joined  2009-10-27

Never mind Rob, after looking at the code more carefully, I noticed there was a var bShowOptions = false; which was overriding the RunSilent setting!

 Signature 

Alessandro’s Store
Blog
LAMH FB

Profile