|
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
|
|
|
|
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=0; i<mConstraintManager.TypeGetCount() i++ )
{
fprintf( mFile, "\t%s\n", (char*)mConstraintManager.TypeGetName( i ) )
}
for( j=0; j<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
|
|
|
|
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
|
|
|