Skip to content

usdShade and usdMtlx schame.usda files don`t work with genschema. #12

@NicTanghe

Description

@NicTanghe

Added this to main:

fn main() -> io::Result<()> {
	let schemas = vec![
		["src/usd_geom/schema.usda", "src/usd_geom/generated.rs"],
		["src/usd_lux/schema.usda", "src/usd_lux/generated.rs"],
		["src/usd_skel/schema.usda", "src/usd_skel/generated.rs"],
		["src/usd_mtlx/schema.usda", "src/usd_mtlx/generated.rs"],
		["src/usd_shade/schema.usda", "src/usd_shade/generated.rs"],
	];

and removed the comments

But the command errors.

shema:

Error at line 1, column 1: Error { global: true, message: "" }

^


thread 'main' (30232) panicked at C:\Users\Nicol\dev\rust\usd\openusd-rs\src\usd\stage.rs:25:19:
Failed to parse USDA file: Error { global: true, message: "" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\genschema.exe src/usd_shade/schema.usda src/usd_shade/generated.rs` (exit code: 101)

mtlx:

Error at line 1, column 1: Error { global: true, message: "" }

^


thread 'main' (24148) panicked at C:\Users\Nicol\dev\rust\usd\openusd-rs\src\usd\stage.rs:25:19:
Failed to parse USDA file: Error { global: true, message: "" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\genschema.exe src/usd_mtlx/schema.usda src/usd_mtlx/generated.rs` (exit code: 101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions