Announcement

Collapse
No announcement yet.

Importing into existing environment shows duplicate material dialog box (v1.50.216)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Importing into existing environment shows duplicate material dialog box (v1.50.216)

    In 1.50.216 when I import a model into an existing environment a dialog box now appears warning of a duplicate material. Indeed there is already materials with the same name in the environment as well as imported model. However this dialog box never used to appear before 1.50.216. I'm importing files via batch and even using the _-Import command doesn't suppress the duplicate material dialog.

    Two things I'm wondering:
    Is there anyway to make the setting of duplicate materials sticky in an option so that it behaves the same way without prompting?
    When -Import is used there shouldn't be a dialog box appearing. Can this be suppressed and/or the option be shown on the command line instead?

    I had to revert back to 1.50.202 and things are better again.

    I hope this is fixed soon as it really interferes with my ability to do touchless batch rendering.

  • #2
    Generally I don't like telling people to modify code, but in this case there is no way to do what you're asking via UI at the moment. If you are willing to modify some code, you can turn this feature off (which will result in duplicates replacing existing materials) by modifying the following line of code, around line 77 of C:\ProgramData\ASGVIS\VfR<insert your rhino version info here>\ASGVIS\PyCallbacks.py (assuming you're using windows 7, the path to this file will differ in other versions of windows):
    loadedURLS = assets.AssetsTable.get_assets_table().load_asset_f rom_xml(assetXML,shouldNotify,modifyUnicode,should PopulateMaterials,shouldCorrectTexturePaths,prompt OnConflict)
    Just remove the last argument being passed to the load_asset_from_xml function, so it looks like this:
    loadedURLS = assets.AssetsTable.get_assets_table().load_asset_f rom_xml(assetXML,shouldNotify,modifyUnicode,should PopulateMaterials,shouldCorrectTexturePaths)
    That should suppress the dialog permanently. I do not recommend this for anyone, unless you have a special case where this is necessary. We will add UI to allow this in the future, so this can be done more safely.
    Last edited by dkendig; 10-07-2012, 08:16 AM. Reason: needed to be more generic
    Best regards,
    Devin Kendig
    Developer

    Chaos Group

    Comment

    Working...
    X