Autodesk / Autodesk/maya-usd

Stage framerate doesn't match Maya's

Open
#3,311 2 comments 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Description**
When creating a stage from scratch it keeps the default of 24fps, so if I'm working with another framerate I will need to edit it by code.

--
**Steps to reproduce**
*The animation should go from frame 1072 to 1100, but you'll see that it doesn't.*
1. Set Maya at 25fps
2. Create an empty usd stage
3. Select the anonymous layer and sublayer attached file `modeling_v03.usd`
4. Select the anonymous layer and sublayer attached file `test_cache_v05.usd`

--
**Expected behavior**
*The animation will be imported correctly .*
1. Set Maya at 25fps
2. Create an empty usd stage
3. Select the stage shape and run this code:
```py
import mayaUsd
stage = mayaUsd.ufe.getStage(mc.ls(sl=True, l=True)[0])
stage.SetTimeCodesPerSecond(25)
stage.SetFramesPerSecond(25)
```
4. Select the anonymous layer and sublayer attached files as above

--
**Attachments**
[stage_framerate_sample_files.zip](https://github.com/Autodesk/maya-usd/files/12539367/stage_framerate_sample_files.zip)

--
**Specs:**
- **OS:** Rocky Linux 9.2 (Blue Onyx)
- **Maya:** 2023.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.