Hi everyone,
I was wondering if there is a method to create a camera track clip from an existing camera track with the Python API.
I am using VRED Professional 2021.
This is the UI function I want to call programatically (screenshot taken from the clip maker interface) :
In my script I am currently able to:
- create a camera track
- add a viewpoint to my camera track
- create empty "AnimClip" and "AnimBlock" nodes
- duplicate existing camera track clips
I was wondering if there is any way to piece these functions together so I can create a camera track clip.
I was also able to copy a manually created clip to the visible root node and look at its fields by using the node editor.
Unfortunately that did not help. The track is defined as an "AnimNode" with the core container being an "AnimClip" and the track block is an "AnimNode" with the core container being an "AnimBlock" (see attached images).
Any help is appreciated.
Even if the outcome is that this is not possible with the current Python API.
Regards,
Fabian
Solved! Go to Solution.
Solved by __daniel.lincoln__. Go to Solution.
Hello,
Here is an example.
createAnimClip('TEST', getRootNode())
my_clip = findAnimClip('TEST')
my_track = findCameraTrackBlock('Camera Track Animated')
addToAnimClip(my_clip, my_track, 0)
Can't find what you're looking for? Ask the community or share your knowledge.