MObject from 'objectId ' ? 2003-11-25 - By Olivier Renouard
Back It's what I recall too, furthermore objectIds are not even supposed to be consistent between two frames.
-- -- Original Message -- -- From: "Andrew Cammarano" <andrew.cammarano@(protected)> To: <maya-dev@(protected)> Sent: Tuesday, November 25, 2003 9:32 AM Subject: Re: MObject from 'objectId' ?
> Objectid is an attribute used by the renderer to track objects, it has > no counterpart in the api, nor a method to translate it to a dagpath > that I know of. Unless something has changed in one of the recent > releases, trying to derive the dagpath or MObject from the objectid is a > dead end. > > -andrew > > On Mon, 2003-11-24 at 17:56, Martin Leguizamon wrote: > > 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/> > > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > List-help: <mailto:listar@(protected)?Subject=help> > List-archive: <http://www.highend3d.com/maya/devarchive/> > > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|