Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating a camera track clip with Python

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
585 Views, 1 Reply

Creating a camera track clip with Python

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) :

FabFY_0-1597914014833.png

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

 

Labels (1)
1 REPLY 1
Message 2 of 2
__daniel.lincoln__
in reply to: Anonymous

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.

Post to forums  

Autodesk Design & Make Report