Python API: vrSceneplateService.copyNodes/pasteNodes seems not working

Python API: vrSceneplateService.copyNodes/pasteNodes seems not working

Ihor_Skoda_Design
Participant Participant
255 Views
1 Reply
Message 1 of 2

Python API: vrSceneplateService.copyNodes/pasteNodes seems not working

Ihor_Skoda_Design
Participant
Participant

Hi! Looks like this code does nothing:

w0 = vrNodeService.findNode('qwe')
vrSceneplateService.copyNodes([w0])
vrSceneplateService.pasteNodes(w0.getParent())

...while it should copy and paste a node. Please, explain, what is wrong?

0 Likes
256 Views
1 Reply
Reply (1)
Message 2 of 2

Ihor_Skoda_Design
Participant
Participant

A workaround found:

w0 = vrNodeService.findNode('qwe')
w1 = vrScenegraphService.cloneNodes([w0])[0]
vrNodeService.unshareNodes([w0, w1])

 And now parent of w1 could be changed.

0 Likes