Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / Constraint Name
  RSS 2.0 ATOM  

Constraint Name
Rate this thread
 
34018
 
Permlink of this thread   Subscribe to this thread
avatar
  • Steve S,
  • Posted: 03 September 2009 07:14 AM
  • Total Posts: 38
  • Joined: 18 October 2007 03:58 AM

Kind of silly, but I’m hoping somebody can give me the quick answer on this.

I created a new constraint and registered it using FBRegisterConstraint.  When I look into the Constraint manager to find it and create it, TypeGetName function will return blank for the name of the constraint.

The samples in the SDK, “ORConstraintDeformer” and “ORConstraintPosition” have the same problem.. no defined name in the ConstraintManager.

Does anybody know how to populate this name?  If not, how else could I create the constraint, from another (import) plugin?

Thanks as always,
Steve



Replies: 0
avatar

Hi Maurice,

I tried to reproduce your issue with below sample codes.
They work fine in my side.
Could you please also try them just in case?
I would like to receive reproducible, if you could not fix.

OpenRealitySDK\samples\constraints\constraintposition
OpenRealitySDK\samples\importexport\impexpgames

<code_begin
/************************************************
 *          Export constraints.
 ************************************************/
void ORGamesExportEngine::ExportConstraints()
{
            if( mExportConstraints )
            {
                        int                                             i
,j;
                        
HFBConstraint   lConstraint;

                        
FileHeaderOpen("Constraints")
                        fprintf( mFile
"Constraint Types :\n" )
                        for( i
=0i<mConstraintManager.TypeGetCount() i++ )
                        
{
                                    fprintf
mFile"\t%s\n", (char*)mConstraintManager.TypeGetName) )
                        
}
                        
for( j=0j<mSystem.Scene->Constraints.GetCount() j++)
                        {
                                    lConstraint 
mSystem.Scene->Constraints[j];
                                    
fprintf( mFile"\t%s\n"(char*)lConstraint->Name )
                                    ExportPropertyList( lConstraint
2 )
                        }
                        FileHeaderClose()
            }
}
<code_end>
<result>
====================================================================================
                
Constraints
_______________________________________________________
Constraint Types 
:
            
Aim
            Expression
            Multi Referential
            
OR - Position from Position
            Parent
/Child
            Path
            Position
            Range
            Relation
            Rigid Body
            3 Points
            Rotation
            Scale
            Mapping
            Chain IK
====================================================================================
<
result>

Regards,
Akira Kudo
Developer Technical Services
http://adn.autodesk.com



Replies: 0
avatar

Hi Maurice,
 
My colleague “Kristine” found the change request as below.

#276694 Custom Constraints can’t be assigned FBConstraintManager:: TypeGetName

We are sorry for inconvenience.

Regards,
Akira Kudo
Developer Technical Services
http://adn.autodesk.com



Replies: 0




   
  Settings Choose Theme color: