// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace frantic { namespace maya { namespace maya_util { inline double get_fps() { return MTime( 1.0, MTime::kSeconds ).as( MTime::uiUnit() ); } void find_all_renderable_cameras( std::vector& outNodes ); void find_nodes_with_type( MFn::Type type, std::vector& outNodes ); void find_nodes_with_type_id( MTypeId typeId, std::vector& outNodes ); void find_nodes_with_output_stream( std::vector& outPaths, std::vector& outNodes, bool isBeginning = true, MString outputStreamAttr = "outParticleStream" ); bool find_node( const MString& name, MObject& outObject ); bool get_object_world_matrix( const MDagPath& dagNodePath, const MDGContext& currentTime, frantic::graphics::transform4f& outTransform ); frantic::tstring get_render_filename( const MDGContext& currentTime, const frantic::tstring& cameraName = _T(""), const frantic::tstring& appendedName = _T(""), const frantic::tstring& fileExtension = _T("") ); bool get_image_format_extension( int mayaFormatId, frantic::tstring& outImageFileExtension ); bool get_image_format_id( const frantic::tstring& imageFileExtension, int& outMayaFormatId ); int get_current_render_image_format(); MString get_node_full_name( const MFnDagNode& node ); MString get_node_full_name( const MFnDependencyNode& node ); MTime get_current_time(); } // namespace maya_util } // namespace maya } // namespace frantic