I'm trying to get hold of only a layer with the transform1 on sublayer1 or a stage taken from transform1, without grabbing the whole stage including sublayer1. Layer break node doesn't work unless I connect a USD ROP node and save that transform to drive. I don't want to do that, instead I want to grab a string stage from transform1 node to do other things with it.
I've tried this to get hold of transform1 node's stage while cutting out the sublayer1 (I'm exporting to usda to assess what the layer looks like):
stage = editNode.stage() layer = stage.GetEditTarget().GetLayer() layer.Export(exportpath.usda)
But instead of this (in .usda exported through USD ROP):
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (0, 0, 500) double radius = 500 } dictionary Perspective = { double3 position = (384.80590043846473, 456.27737720926046, 360.3428005190457) double3 target = (-15.66946169270642, 55.802024636727424, -40.13256161212536) } dictionary Right = { double3 position = (-500, 0, 0) double radius = 500 } dictionary Top = { double3 position = (0, 500, 0) double radius = 500 } string boundCamera = "/OmniverseKit_Persp" } dictionary navmeshSettings = { double agentHeight = 180 double agentRadius = 20 bool excludeRigidBodies = 1 int ver = 1 double voxelCeiling = 460 } dictionary omni_layer = { string authoring_layer = "./main.usda" dictionary locked = { } dictionary muteness = { } } dictionary renderSettings = { float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) float3 "rtx:iray:environment_dome_ground_position" = (0, 0, 0) float3 "rtx:iray:environment_dome_ground_reflectivity" = (0, 0, 0) float3 "rtx:iray:environment_dome_rotation_axis" = (0, 1, 0) float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) float3 "rtx:post:colorcorr:gain" = (1, 1, 1) float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) float3 "rtx:post:colorcorr:offset" = (0, 0, 0) float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) float3 "rtx:post:colorgrad:gain" = (1, 1, 1) float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) float3 "rtx:post:colorgrad:lift" = (0, 0, 0) float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) float3 "rtx:post:colorgrad:offset" = (0, 0, 0) float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) } } defaultPrim = "DefaultPrim" endTimeCode = 1 framesPerSecond = 24 metersPerUnit = 1 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Y" ) over "DefaultPrim" { matrix4d xformOp:transform:transform1 = ( (0.9573222359425617, 0, 0.2890227439631354, 0), (0, 1, 0, 0), (-0.28902270950894043, 0, 0.9573222359425617, 0), (-9.361951708793638, 0.28755028769673885, 32.54940554794106, 1) ) uniform token[] xformOpOrder = ["xformOp:translate:pivot", "!invert!xformOp:translate:pivot", "xformOp:transform:coat_pivot", "xformOp:transform:transform1"] }
I get this (with the transform not being inside the 'over "Default Prim"' part:
#usda 1.0 ( defaultPrim = "DefaultPrim" framesPerSecond = 24 metersPerUnit = 1 timeCodesPerSecond = 24 upAxis = "Y" ) def HoudiniLayerInfo "HoudiniLayerInfo" ( customData = { int HoudiniCreatorNode = 33 int[] HoudiniEditorNodes = [33, 36] } ) { } over "DefaultPrim" ( customData = { int[] HoudiniPrimEditorNodes = [33] } ) { matrix4d xformOp:transform:transform1 = ( (0.9573222359425617, 0, 0.2890227439631354, 0), (0, 1, 0, 0), (-0.28902270950894043, 0, 0.9573222359425617, 0), (-33.34230983257293, 0.28755028769673885, 111.97886890047008, 1) ) uniform token[] xformOpOrder = ["xformOp:translate:pivot", "!invert!xformOp:translate:pivot", "xformOp:transform:coat_pivot", "xformOp:transform:transform1"] }
When I stream the latter transform's usda to Omniverse Kit's viewport, it doesn't do anything. I'm wondering whether it's because it's missing the former's customLayerData or whether it's something else...
I'd appreciate any suggestions
