Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
MObject from 'objectId ' ?

MObject from 'objectId ' ?

2003-11-24       - By Martin Leguizamon

 Back
Reply:     1     2     3     4     5     6     7     8  

Hi there,
Has anyone successfully got the shape object from
the 'objectId' attribute ?

Seems that 'objectId' provides a pointer address
to the object, so I tried this in my shader with
no luck:

******

MStatus myShader::compute( const MPlug& plug, MDataBlock& block )
{

//...

MStatus status;

int objId = block.inputValue( aObjectId ).asLong();
MFnDependencyNode dNode( *( MObject* ) objId, &status );

status == MS::kSuccess ? MGlobal::displayInfo( dNode.name() ) :
                        MGlobal::displayError( "Invalid Object!" );

//...

}

******

Is there any Alias developer ?

Thanks for any help,
Martin

--
Martin Leguizamon
PROVIDE3D Developments
http://www.provide3d.com - contact@(protected)
+54 (341) 447-3389



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
List-help: <mailto:listar@(protected)?Subject=help>
List-archive: <http://www.highend3d.com/maya/devarchive/>