AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / How do I access the seed parameter in BoxGizmo/SphereGizmo/CylGizmo from the SDK.
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

How do I access the seed parameter in BoxGizmo/SphereGizmo/CylGizmo from the SDK.
Rate this thread
 
66094
 
Permlink of this thread  
avatar
  • Klunk
  • Posted: 13 April 2012 08:16 PM
  • Total Posts: 25
  • Joined: 31 January 2008 02:05 PM

I can access it via mxs, but not using IGame property methods or the via the Paramblock method in SDK help.



Replies: 0
avatar
  • Klunk
  • Posted: 01 June 2012 11:18 PM

finally found a solution, with a doh! funny it doesn’t get picked up by the igame QueryProperty system like the other params

from a max helper object

BoxGizmoObjectgizmo dynamic_cast<BoxGizmoObject*>(helperObj)
if(
gizmo)
 
int seed gizmo->pblock->GetInt(PB_BOXGIZMO_SEED,0);

from a mxs scripted plugin “extended” helper object

int numrefs helperObj->NumRefs();
for(
int i=0numrefs;i++)
{
 ReferenceTarget
ref helperObj->GetReference(i);
 if(
ref->ClassID() == Class_ID(0x3bc319040x67d74ec9))
 
{
 BoxGizmoObject
gizmo dynamic_cast<BoxGizmoObject*>(ref);
 if(
gizmo)
 

 int seed 
gizmo->pblock->GetInt(PB_BOXGIZMO_SEED,0);
 
}
 }
}


Replies: 0