how to export/import rigidity map preset? like importing uvs?

MistaraMistara Posts: 38,675

I see how to import alternate uvs,

but how do you import/export rigidity maps as a character preset?
focusing on toe nails and hair barettes.

DS 4.9 pr 4.10

Thanks! smiley

Comments

  • Richard HaseltineRichard Haseltine Posts: 108,041

    A Character Preset used to load a new character will bring in geometry and rigging changes, as will a Scene or Scene Subset - as will a Wearables preset, which might be relevant for you.

  • MistaraMistara Posts: 38,675

    yes, 

     cool

    stuck on :
    how to make the preset call only the #geometry and not the rigid groups?
    for example, a shirt for g2f has rigid buttons.
    the buttons are dodgy
    trying to make a load preset that will load the geometry but not the rigid lines

     

  • Richard HaseltineRichard Haseltine Posts: 108,041

    I'm not sure what you mean - are you wanting to completely remove the rigidity Groups? I don't think you can do that, though you should be able to replace the existing group with one that has only a single polygon (on the back of the button, perhaps).

  • MistaraMistara Posts: 38,675
    edited March 2018

    could try the 1 poly method.smiley

    been trial and erroring to come up with a url to point to an alternate #rigid,
    so far is only error  sigh

    is all under #geometry, how to parse it?

    load the geometry to an array first?  can a daz script do that?
    curly braces >.<  c++ makes me seasick.

    Post edited by Mistara on
  • Richard HaseltineRichard Haseltine Posts: 108,041
    edited March 2018

    Yes, it's DSON (JSON derivative) and Daz Script can turn that into a data structure. This is my code from the fix Duplicate IDs script:

    function prepFile( name ) {	// Open the file, read it into a string	// and convert to a JSON object, which 	// is to be returned		// open file	var file = new DzFile( name );	if ( file.open( DzFile.ReadOnly ) ) {		var ourObject = JSON.parse( file.read() );		file.close();		return ourObject;	}	return undefined;}

    which is given the fiel name, opens it as read-only, and reads the whole thing in and converts it into an object (that needs more error trapping than it has).

    Post edited by Richard Haseltine on
Sign In or Register to comment.