Animation — Aspose.3D FOSS for Java

Example

在 Aspose.3D FOSS for Java 中的动画系统是一个 声明存根. 仅 AnimationClip 类可用,构造函数和基本属性继承自 A3DObject. 关键帧数据、播放、通道和插值是 尚未实现.

以下类 不存在 在本版中:: AnimationNode, AnimationChannel, BindPoint, KeyFrame, KeyframeSequence, Interpolation (枚举),, ExtrapolationType (枚举)。.

所有动画类位于 com.aspose.threed 根包。.

import com.aspose.threed.*;

AnimationClip

用于动画范围的具名容器。A Scene 可以容纳多个剪辑。继承自 A3DObject.

存根说明:: AnimationClip 可以被构造并命名,但关键帧数据和播放功能尚未实现。该类的存在是为了让格式导入器在往返 I/O 过程中保留动画剪辑元数据。.

Example

ExampleExample
AnimationClip()创建一个没有名称的剪辑
AnimationClip(String name)创建一个具有指定名称的剪辑

Example

ExampleExampleExampleExampleExample
nameStringgetName()setName(String)剪辑名称(例如. "Walk")
descriptionStringgetDescription()setDescription(String)可选描述
startdoublegetStart()setStart(double)开始时间(秒)
stopdoublegetStop()setStop(double)结束时间(秒)
propertiesPropertyCollectiongetProperties()自定义属性

Example

import com.aspose.threed.*;

// Create an animation clip (metadata only — no keyframe support)
AnimationClip clip = new AnimationClip("Walk");
clip.setStart(0.0);
clip.setStop(2.0);
System.out.println(clip.getName());   // "Walk"

另见

 中文